/* 61 */ MethodPermissionsMetaData perms = bean.getMethodPermissions();
/* */ Iterator i$;
/* 62 */ if (perms != null)
/* 63 */ for (i$ = perms.iterator(); i$.hasNext(); ) { perm = (MethodPermissionMetaData)i$.next();
/* */
/* 65 */ MethodsMetaData methods = perm.getMethods();
/* 66 */ if (methods != null)
/* 67 */ for (org.jboss.metadata.ejb.spec.MethodMetaData mmd : methods)
/* */ {
/* 69 */ String[] params = new String[0];
/* 70 */ if (mmd.getMethodParams() != null)
/* 71 */ params = (String[])mmd.getMethodParams().toArray(params);
/* */ else
/* 73 */ params = null;
/* 74 */ String methodName = mmd.getMethodName();
/* 75 */ if ((methodName != null) && (methodName.equals("*")))
/* 76 */ methodName = null;
/* 77 */ MethodInterfaceType miType = mmd.getMethodIntf();
/* 78 */ String iface = miType != null ? miType.name() : null;
/* 79 */ EJBMethodPermission p = new EJBMethodPermission(mmd.getEjbName(), methodName, iface, params);
/* */
/* 81 */ if (perm.getUnchecked() != null)
/* */ {
/* 83 */ pc.addToUncheckedPolicy(p);
/* */ }
/* */ else
/* */ {
/* 87 */ Set roles = perm.getRoles();
/* 88 */ Iterator riter = roles.iterator();
/* 89 */ while (riter.hasNext())
/* */ {
/* 91 */ String role = (String)riter.next();
/* 92 */ pc.addToRole(role, p);
/* */ }
/* */ }
/* */ }
/* */ }
/* */ MethodPermissionMetaData perm;
/* 99 */ ExcludeListMetaData excluded = bean.getExcludeList();
/* 100 */ if (excluded != null)
/* */ {
/* 102 */ MethodsMetaData methods = excluded.getMethods();
/* 103 */ if (methods != null) {
/* 104 */ for (org.jboss.metadata.ejb.spec.MethodMetaData mmd : methods)
/* */ {
/* 106 */ String[] params = new String[0];
/* 107 */ if (mmd.getMethodParams() != null)