*/
public static ObjectName createObjectName(Map nameMap) {
Hashtable objectNameMap = new Hashtable(nameMap);
String type = (String) nameMap.get(J2EE_TYPE);
if ("JVM".equals(type)) {
objectNameMap.keySet().retainAll(Arrays.asList(new String[] {J2EE_TYPE, J2EE_NAME, "J2EEServer"}));
objectNameMap.put("J2EEServer", DEFAULT_SERVER_NAME);
} else if ("J2EEDomain".equals(type)) {
//special case J2EEDomain gbean
objectNameMap.clear();
objectNameMap.put(J2EE_TYPE, "J2EEDomain");