public final PermissionCollection getPermissions(CodeSource codeSource) {
public PermissionCollection getPermissions(CodeSource codeSource) {
    public final PermissionCollection getPermissions(CodeSource codeSource) {        Permissions perms = new Permissions();        for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) {            final Map.Entry e = (Map.Entry) it.next();            final CodeSource cs = (CodeSource) e.getKey();            if (cs.implies(codeSource)) {                debug(cs + " -> " + codeSource);                final PermissionCollection pc = (PermissionCollection) e                        .getValue();                for (Enumeration ee = pc.elements(); ee.hasMoreElements();) {                    perms.add((Permission) ee.nextElement());                }            } else {                debug(cs + " !-> " + codeSource);            }        }        addPermissions(codeSource, perms);        //perms.setReadOnly();        //debug("return from getPermissions");        return perms;    }