for (int i = 0; i < result.size(); i++) { t = (Vector) result.elementAt(i);
for(int i = 0; i < resources.length; i++) { t = (Vector) result.get(resources[i]);
	public Permission[] listResourcePermissions() throws XMLDBException {		try {			Vector params = new Vector();			params.addElement(parent.getPath());			Vector result =				(Vector) parent.getClient().execute(					"listDocumentPermissions",					params);			Permission perm[] = new Permission[result.size()];			Vector t;			for (int i = 0; i < result.size(); i++) {				t = (Vector) result.elementAt(i);				perm[i] = new Permission();				perm[i].setOwner((String) t.elementAt(0));				perm[i].setGroup((String) t.elementAt(1));				perm[i].setPermissions(((Integer) t.elementAt(2)).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);		}	}