public static <T extends DataObjectRestRep>T find(Collection<T> values,URI id){
  if ((values != null) && (id != null)) {
    for (    T value : values) {
      if (id.equals(id(value))) {
        return value;
      }
    }
  }
  return null;
}

public static < T extends DataObjectRestRep > T find ( Collection < T > values , URI id ) { if ( ( values != null ) && ( id != null ) ) { for ( T value : values ) { if ( id . equals ( id ( value ) ) ) { return value ; } } } return null ; }
finds a data object within a collection by id .
