Schema schema = (new SchemaReader((String) resource.getContent())).read(); return schema;
Schema schema = (new SchemaReader(new InputSource(new StringReader((String) resource.getContent())))).read(); return schema;
	private Schema getCastorSchema(String namespaceURI) throws XMLDBException {		XMLResource resource = getSchema(namespaceURI);		try {			Schema schema = (new SchemaReader((String) resource.getContent())).read();			return schema;		} catch (IOException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, "Error reading schema information for target namespace: " + namespaceURI, e);		}			}