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

@param request
@return