public static String getObjectName(GovernanceApproval g) {
   EObject o = g.eContainer();
   if (o instanceof VersionedType) return ((BusinessObject) o).getName();
   else if (o instanceof org.xkonnex.repo.dsl.servicedsl.serviceDsl.Exception)
     return ((org.xkonnex.repo.dsl.servicedsl.serviceDsl.Exception) o).getName();
   else if (o instanceof Service) return ((Service) o).getName();
   else return null;
 }
 public static Version getObjectVersion(GovernanceApproval g) {
   EObject o = g.eContainer();
   if (o instanceof BusinessObject) return ((BusinessObject) o).getVersion();
   else if (o instanceof Enumeration) return ((Enumeration) o).getVersion();
   else if (o instanceof org.xkonnex.repo.dsl.servicedsl.serviceDsl.Exception)
     return ((org.xkonnex.repo.dsl.servicedsl.serviceDsl.Exception) o).getVersion();
   else if (o instanceof Service) return ((Service) o).getVersion();
   else return null;
 }