@Override
    public void setWhereFrom(final Local file, final String dataUrl) throws LocalAccessDeniedException {
        synchronized(lock) {
            if(StringUtils.isBlank(dataUrl)) {
                log.warn("No data url given");
                return;
            }
            if(!this.setWhereFrom(file.getAbsolute(), dataUrl)) {
                throw new LocalAccessDeniedException(file.getAbsolute());
            }
        }
    }
@Test
    public void testSetWhereFrom() throws Exception {
        final QuarantineService q = new LaunchServicesQuarantineService();
        Callable<Local> c = new Callable<Local>() {
            @Override
            public Local call() throws Exception {
                final NullLocal l = new NullLocal(System.getProperty("java.io.tmpdir"), UUID.randomUUID().toString());
                LocalTouchFactory.get().touch(l);
                q.setWhereFrom(l,
                        "http://cyberduck.ch");
                l.delete();
                return l;
            }
        };
        c.call();
    }