protected RelationIterator getItemsIterator(
RequestParameters requestParameters, Resource resource, EnhancedRequest ehRequest) {
RelationIterator itemIterator;
itemIterator = new DirectRelationIterator(resource);
if (!requestParameters.getOnlyDirect()) {
itemIterator = new IndirectRelationIterator(
(CSRelationIterator) itemIterator, requestParameters
.getMinimalRelevance());
}
if (!requestParameters.getUnOrdered()) {
itemIterator = new StrengthSortedRelationIterator(