public void registerSchema(final String schemaId, final InputStream inputStreamSchema) throws Exception {
try {
Schema niftyXmlSchema = new Schema();
XmlParser parser = new XmlParser(new MXParser());
parser.read(inputStreamSchema);
parser.nextTag();
parser.required("nxs", niftyXmlSchema);
schemes.put(schemaId, niftyXmlSchema);
} finally {
inputStreamSchema.close();
}