@Override
    public boolean find(final Path file, final ListProgressListener listener) throws BackgroundException {
        if(file.isRoot()) {
            return true;
        }
        try {
            final SMBSession.DiskShareWrapper share = session.openShare(file);
            try {
                if(new SMBPathContainerService(session).isContainer(file)) {
                    return true;
                }
                if(file.isDirectory()) {
                    return share.get().folderExists(new SMBPathContainerService(session).getKey(file));
                }
                return share.get().fileExists(new SMBPathContainerService(session).getKey(file));
            }
            catch(SMBRuntimeException e) {
                throw new SMBExceptionMappingService().map("Failure to read attributes of {0}", e, file);
            }
            finally {
                session.releaseShare(share);
            }
        }
        catch(NotfoundException e) {
            return false;
        }
    }
@Test
    public void testFindShareNotFound() throws Exception {
        assertFalse(new SMBFindFeature(session).find(new Path(new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory, Path.Type.volume))));
    }