new Permission((String) result.get("owner"), (String) result.get("group")); perm.setPermissions(((Integer) result.get("permissions")).intValue());
new Permission((String) result.get("owner"), (String) result.get("group"), ((Integer) result.get("permissions")).intValue());
	public Permission getPermissions(Collection coll) throws XMLDBException {		if (coll == null)			throw new XMLDBException(ErrorCodes.INVALID_RESOURCE, "collection is null");		Permission perm = ((RemoteCollection)coll).getPermissions();		if(perm != null)			return perm;		try {			Vector params = new Vector();			params.addElement(((RemoteCollection) coll).getPath());			Hashtable result = (Hashtable) parent.getClient().execute("getPermissions", params);			perm =				new Permission((String) result.get("owner"), (String) result.get("group"));			perm.setPermissions(((Integer) result.get("permissions")).intValue());			return perm;		} catch (XmlRpcException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);		} catch (IOException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);		}	}