* @param resource
* the resource.
* @return the named reference to the resource.
*/
public static NamedRelatedResourceRep createNamedRef(DataObjectRestRep resource) {
return (resource != null) ? new NamedRelatedResourceRep(id(resource), null, name(resource)) : null;
}