private DirectoryStream<Path> newDirectoryStream( final Iterator<org.uberfire.java.nio.file.Path> iterator ) {
final List<Path> content = new LinkedList<Path>();
while ( iterator.hasNext() ) {
content.add( Paths.convert( iterator.next() ) );
}
return new DirectoryStreamImpl( content );
}