/* */ private void addSecurityIdentityAnnotation(EJBContainer container, SecurityIdentityMetaData identity)
/* */ {
/* 2001 */ if ((identity != null) && (!identity.isUseCallerId()))
/* */ {
/* 2003 */ RunAsMetaData runAs = identity.getRunAs();
/* 2004 */ RunAsImpl annotation = null;
/* 2005 */ if (runAs != null)
/* */ {
/* 2007 */ annotation = new RunAsImpl(runAs.getRoleName());
/* 2008 */ addClassAnnotation(container, annotation.annotationType(), annotation);
/* */ }
/* */
/* 2012 */ String runAsPrincipal = identity.getRunAsPrincipal();
/* 2013 */ if (runAsPrincipal != null)
/* */ {