code: private boolean isResourceIndirectOrDirect(final FedoraResource resource) {
          return resource.getTypes().stream().anyMatch(l -> directOrIndirect.contains(l));
      }
docs: Is the current resource a direct or indirect container
  
  @param request
  @return