@Override
    public List<ResourceModel> provideResource(String[] resourceIDs) {
        return resources.stream()
                .filter(resource -> Arrays.stream(resourceIDs)
                        .anyMatch(resourceID -> resourceID.equals(resource.getResourceID())))
                .collect(Collectors.toList());
    }
@ Override public List < ResourceModel > provideResource ( String [ ] resourceIDs ) { return resources . stream ( ) . filter ( resource -> Arrays . stream ( resourceIDs ) . anyMatch ( resourceID -> resourceID . equals ( resource . getResourceID ( ) ) ) ) . collect ( Collectors . toList ( ) ) ; }
returns all EXISTING resources for the ID.
If there are no resources for the ID the ID will get skipped

@param resourceIDs an Array containing the resources
@return a list of resources found