/**
  * Finds the list of resources in the given project, optionally filtering the results.
  *
  * @param project the project.
  * @param filter the resource filter to apply to the results as they are returned (optional).
  * @return the list of resources.
  */
 public List<T> findByProject(ProjectRestRep project, ResourceFilter<T> filter) {
   return findByProject(ResourceUtils.id(project), filter);
 }
 /**
  * Finds the list of resources in the given project.
  *
  * @param project the project.
  * @return the list of resources.
  */
 public List<T> findByProject(ProjectRestRep project) {
   return findByProject(ResourceUtils.id(project), null);
 }