public static List<String> refNames(Collection<? extends NamedRelatedResourceRep> refs){
  List<String> names=new ArrayList<String>();
  if (refs != null) {
    for (    NamedRelatedResourceRep ref : refs) {
      names.add(ref.getName());
    }
  }
  return names;
}

public static List < String > refNames ( Collection < ? extends NamedRelatedResourceRep > refs ) { List < String > names = new ArrayList < String > ( ) ; if ( refs != null ) { for ( NamedRelatedResourceRep ref : refs ) { names . add ( ref . getName ( ) ) ; } } return names ; }
gets the name of the references , null safe
