@Override
    public boolean containsResourcesFromSource(String sourceID) {
        return resources.stream()
                .map(ResourceModel::getResourceID)
                .anyMatch(source -> source.equals(sourceID));
    }
@Override
    public boolean containsResourcesFromSource(String sourceID) {
        return resources.stream()
                .map(ResourceModel::getResourceID)
                .anyMatch(source -> source.equals(sourceID));
    }
@ Override public boolean containsResourcesFromSource ( String sourceID ) { return resources . stream ( ) . map ( ResourceModel :: getResourceID ) . anyMatch ( source -> source . equals ( sourceID ) ) ; }
checks whether there are any resources registered from the source

@param sourceID the ID of the source
@return true if the container has resources from the source
checks whether there are any resources registered from the source