/* */ {
/* 65 */ super.setContainer(container);
/* 66 */ if (container != null)
/* */ {
/* 68 */ BeanMetaData beanMetaData = container.getBeanMetaData();
/* 69 */ ApplicationMetaData application = beanMetaData.getApplicationMetaData();
/* 70 */ AssemblyDescriptorMetaData assemblyDescriptor = application.getAssemblyDescriptor();
/* */
/* 72 */ SecurityIdentityMetaData secMetaData = beanMetaData.getSecurityIdentityMetaData();
/* 73 */ if ((secMetaData != null) && (!secMetaData.getUseCallerIdentity()))
/* */ {
/* 75 */ String roleName = secMetaData.getRunAsRoleName();
/* 76 */ String principalName = secMetaData.getRunAsPrincipalName();
/* 77 */ if (principalName == null) {
/* 78 */ principalName = application.getUnauthenticatedPrincipal();
/* */ }
/* 80 */ Set extraRoleNames = assemblyDescriptor.getSecurityRoleNamesByPrincipal(principalName);
/* 81 */ this.runAsIdentity = new RunAsIdentity(roleName, principalName, extraRoleNames);
/* */ }
/* */