@Override
    public boolean resolve(final Local file) throws NotfoundException, LocalAccessDeniedException {
        if(PreferencesFactory.get().getBoolean("local.symboliclink.resolve")) {
            // Follow links instead
            return false;
        }
        // Create symbolic link only if supported by the host
        if(feature != null) {
            final Local target = file.getSymlinkTarget();
            // Only create symbolic link if target is included in the upload
            for(TransferItem root : files) {
                if(this.findTarget(target, root.local)) {
                    if(log.isDebugEnabled()) {
                        log.debug(String.format("Resolved target %s for %s", target, file));
                    }
                    return true;
                }
            }
        }
        return false; //Follow links instead
    }
@Test
    public void testNoSymbolicLink() throws Exception {
        UploadSymlinkResolver resolver = new UploadSymlinkResolver(null, Collections.emptyList());
        assertFalse(resolver.resolve(new NullLocal("a")));
    }