r = new RemoteXMLResource(this, -1, -1, dp.getName(), null); r.setPermissions(dp.getPermissions()); return r;
if(dp.getType() == null || dp.getType().equals("XMLResource")) { RemoteXMLResource r = new RemoteXMLResource(this, -1, -1, dp.getName(), null); r.setPermissions(dp.getPermissions()); return r; } else { RemoteBinaryResource r = new RemoteBinaryResource(this, dp.getName()); r.setPermissions(dp.getPermissions()); return r; }
	public Resource getResource(String id) throws XMLDBException {		if (childCollections == null)			readCollection();		int rlen = resources.size();		for (int i = 0; i < rlen; i++) {			DocumentProxy dp = (DocumentProxy) resources.get(i);			RemoteXMLResource r;			if (dp.getName().equals(id)) {				r = new RemoteXMLResource(this, -1, -1, dp.getName(), null);				r.setPermissions(dp.getPermissions());				return r;			}		}		return null;	}