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