Object adminProxy = null;
try {
if(admin == null) {
Exporter adminExporter = getAdminExporter();
if (contextMgr != null)
admin = new ServiceAdminImpl(this, adminExporter, contextMgr.getContextAttributeLogHandler());
else
admin = new ServiceAdminImpl(this, adminExporter);
}
admin.setServiceBeanContext(getServiceBeanContext());
adminProxy = admin.getServiceAdmin();
} catch (Throwable t) {
logger.error("Getting ServiceAdminImpl", t);