boolean hasDifferentLocators = ServiceElementUtil.hasDifferentLocators(preElem, postElem);
if (hasDifferentGroups || hasDifferentLocators) {
logger.trace("[{}] Discovery has changed", context.getServiceElement().getName());
if (serviceProxy instanceof Administrable) {
try {
Administrable admin = (Administrable) serviceProxy;
Object adminObject;
adminObject = admin.getAdmin();
if (adminObject instanceof JoinAdmin) {
JoinAdmin joinAdmin = (JoinAdmin) adminObject;
/* Update groups if they have changed */
if (hasDifferentGroups) {
joinAdmin.setLookupGroups(postElem.getServiceBeanConfig().getGroups());