RemoteXMLResource r = new RemoteXMLResource(this, -1, -1, newId, null);
Resource r; if(type.equals("XMLResource")) r = new RemoteXMLResource(this, -1, -1, newId, null); else if(type.equals("BinaryResource")) r = new RemoteBinaryResource(this, newId); else throw new XMLDBException(ErrorCodes.UNKNOWN_RESOURCE_TYPE, "unknown resource type: " + type);
	public Resource createResource(String id, String type) throws XMLDBException {		String newId = id == null ? createId() : id;		RemoteXMLResource r = new RemoteXMLResource(this, -1, -1, newId, null);		return r;	}