private IteratorFactory() {
}
public static Iterator<Resource> getIterator(Function<?, ?> function, Iterator<Resource> parentIterator) {
if (function instanceof ResourceToResourceFunction) {
ResourceToIteratorFunction wrappingFunction = new ResourceToIteratorWrapperFunction(
(ResourceToResourceFunction) function);
return new FunctionIterator<Resource>(wrappingFunction, parentIterator);
} else if (function instanceof ResourceToIteratorFunction) {
return new FunctionIterator<Resource>((ResourceToIteratorFunction) function, parentIterator);
} else if (function instanceof IteratorToIteratorFunction) {