{
Object[] filler = { ServiceGroupPersistence.class, persistence.getClass() };
throw new RuntimeException(_MESSAGES.get("IncorrectPersistenceRoot", filler));
}
ServiceGroupPersistence sgP = (ServiceGroupPersistence)persistence;
sgP.setServiceGroup(resource);
}
//
// listen for all new resources being created so they can
// be added to the service group