public static boolean isReferenceType(NodeId referenceTypeId){
  if (referenceTypeId.equals(Identifiers.References) || referenceTypeId.equals(Identifiers.NonHierarchicalReferences) || referenceTypeId.equals(Identifiers.HierarchicalReferences)|| referenceTypeId.equals(Identifiers.HasEventSource)|| referenceTypeId.equals(Identifiers.HasNotifier)|| referenceTypeId.equals(Identifiers.Organizes)|| referenceTypeId.equals(Identifiers.HasChild)|| referenceTypeId.equals(Identifiers.HasSubtype)|| referenceTypeId.equals(Identifiers.Aggregates)|| referenceTypeId.equals(Identifiers.HasProperty)|| referenceTypeId.equals(Identifiers.HasComponent)|| referenceTypeId.equals(Identifiers.HasOrderedComponent)|| referenceTypeId.equals(Identifiers.GeneratesEvent)|| referenceTypeId.equals(Identifiers.AlwaysGeneratesEvent)|| referenceTypeId.equals(Identifiers.HasEncoding)|| referenceTypeId.equals(Identifiers.HasModellingRule)|| referenceTypeId.equals(Identifiers.HasDescription)|| referenceTypeId.equals(Identifiers.HasTypeDefinition)) {
    return true;
  }
  return false;
}

public static boolean isReferenceType ( NodeId referenceTypeId ) { if ( referenceTypeId . equals ( Identifiers . References ) || referenceTypeId . equals ( Identifiers . NonHierarchicalReferences ) || referenceTypeId . equals ( Identifiers . HierarchicalReferences ) || referenceTypeId . equals ( Identifiers . HasEventSource ) || referenceTypeId . equals ( Identifiers . HasNotifier ) || referenceTypeId . equals ( Identifiers . Organizes ) || referenceTypeId . equals ( Identifiers . HasChild ) || referenceTypeId . equals ( Identifiers . HasSubtype ) || referenceTypeId . equals ( Identifiers . Aggregates ) || referenceTypeId . equals ( Identifiers . HasProperty ) || referenceTypeId . equals ( Identifiers . HasComponent ) || referenceTypeId . equals ( Identifiers . HasOrderedComponent ) || referenceTypeId . equals ( Identifiers . GeneratesEvent ) || referenceTypeId . equals ( Identifiers . AlwaysGeneratesEvent ) || referenceTypeId . equals ( Identifiers . HasEncoding ) || referenceTypeId . equals ( Identifiers . HasModellingRule ) || referenceTypeId . equals ( Identifiers . HasDescription ) || referenceTypeId . equals ( Identifiers . HasTypeDefinition ) ) { return true ; } return false ; }
convenience method wrapping different reference types .
