@ Override public boolean providesResource ( ResourceModel resource ) { return resources . stream ( ) . map ( ResourceModel :: getResourceID ) . anyMatch ( resourceS -> resourceS . equals ( resource . getResourceID ( ) ) ) ; }
checks whether it can provide the resource