@Override
    public OutputStream getOutputStream(boolean append) throws AccessDeniedException {
        final NSURL resolved;
        try {
            resolved = this.lock(this.exists());
            if(null == resolved) {
                return super.getOutputStream(append);
            }
        }
        catch(LocalAccessDeniedException e) {
            log.warn(String.format("Failure obtaining lock for %s. %s", this, e));
            return super.getOutputStream(append);
        }
        return new LockReleaseProxyOutputStream(super.getOutputStream(resolved.path(), append), resolved, append);
    }
@Test
    public void testWriteExistingFile() throws Exception {
        final FinderLocal file = new FinderLocal(System.getProperty("java.io.tmpdir"), new AlphanumericRandomStringService().random());
        new DefaultLocalTouchFeature().touch(file);
        final OutputStream out = file.getOutputStream(false);
        out.close();
        file.delete();
    }