? SecurityServicesUtil.getInstance().getAuditManager()
: new AuditManager();//workaround for standalone clients where no habitat
invManager = (SecurityServicesUtil.getInstance() != null)
? SecurityServicesUtil.getInstance().getHabitat().getComponent(InvocationManager.class) : null;
this.ejbDelegate = new EJBPolicyContextDelegate();
}