public PermissionSet getPermissions() { if( permissionSet instanceof PermissionSet ) return (PermissionSet) permissionSet; else { permissionSet = new PermissionSet(permissionSet); return (PermissionSet)permissionSet; } }
public PermissionSet getPermissions() {  return new PermissionSet(permissionSet);  }
    public PermissionSet getPermissions()    {    	if( permissionSet instanceof PermissionSet )    		return (PermissionSet) permissionSet;    	else {    		permissionSet = new PermissionSet(permissionSet);    		return (PermissionSet)permissionSet;    	}    }