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");
objectNameMap.put(J2EE_NAME, DEFAULT_DOMAIN_NAME);
} else if ("J2EEServer".equals(type)) {
//special case J2EEServer gbean
objectNameMap.clear();