LocalXMLResource r = new LocalXMLResource( user, brokerPool, this, id, -1, properties); return r; }
Resource r = null; if(type.equals("XMLResource")) r = new LocalXMLResource(user, brokerPool, this, id, -1, properties); else if(type.equals("BinaryResource")) r = new LocalBinaryResource(user, brokerPool, this, id); else throw new XMLDBException(ErrorCodes.INVALID_RESOURCE, "unknown resource type: " + type); return r; }
    public Resource createResource( String id,                                    String type ) throws XMLDBException {        if ( id == null )            id = createId();        LocalXMLResource r =            new LocalXMLResource( user, brokerPool, this, id, -1, properties);        return r;    }