schemaLanguage = (schemaLanguage != null && schemaLanguage.trim().length() > 0) ? schemaLanguage : "XMLSCHEMA";
Options options = new Options();
options.setSchemaLanguage( Language.valueOf( schemaLanguage ) );
JaxbConfiguration jaxbConf = KnowledgeBuilderFactory.newJaxbConfiguration( new Options(),
systemId );
factory.addPropertyValue( "resourceConfiguration",
jaxbConf );
} else {
JaxbConfiguration jaxbConf = KnowledgeBuilderFactory.newJaxbConfiguration( new Options(),
"xsd" );
factory.addPropertyValue( "resourceConfiguration",
jaxbConf );
}