/* */ }
/* */
/* */ private void addSecurityAnnotations(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean, String ejbName)
/* */ throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException
/* */ {
/* 1054 */ JBossAssemblyDescriptorMetaData assembly = this.dd.getAssemblyDescriptor();
/* */ Iterator i$;
/* 1055 */ if (assembly != null)
/* */ {
/* 1057 */ SecurityRolesMetaData securityRoles = assembly.getSecurityRoles();
/* */
/* 1059 */ if ((securityRoles != null) && (securityRoles.size() > 0))
/* */ {
/* 1061 */ List roleList = new ArrayList();
/* 1062 */ for (SecurityRoleMetaData securityRole : securityRoles)
/* */ {
/* 1064 */ roleList.add(securityRole.getRoleName());
/* */ }
/* */
/* 1067 */ DeclareRolesImpl annotation = new DeclareRolesImpl((String[])roleList.toArray(new String[roleList.size()]));
/* 1068 */ addClassAnnotation(container, DeclareRoles.class, annotation);
/* */ }
/* */
/* 1071 */ MethodPermissionsMetaData methodPermissions = assembly.getMethodPermissions();
/* 1072 */ if (methodPermissions != null)
/* */ {
/* 1074 */ for (i$ = methodPermissions.iterator(); i$.hasNext(); ) { permission = (MethodPermissionMetaData)i$.next();
/* */
/* 1076 */ for (MethodMetaData method : permission.getMethods())