*
* @param gbeanInstance the GBean to register
* @throws GBeanAlreadyExistsException if there is already a GBean registered with the instance's name
*/
public synchronized void register(GBeanInstance gbeanInstance) throws GBeanAlreadyExistsException {
GBeanName name = createGBeanName(gbeanInstance.getObjectNameObject());
if (registry.containsKey(name)) {
throw new GBeanAlreadyExistsException("GBean already registered: " + name);
}
registry.put(name, gbeanInstance);
}