private static PrismSchema parse(Element element, EntityResolver resolver, PrismSchemaImpl schema, boolean isRuntime,
String shortDescription, boolean allowDelayedItemDefinitions, PrismContext prismContext) throws SchemaException {
if (element == null) {
throw new IllegalArgumentException("Schema element must not be null in "+shortDescription);
}
setSchemaNamespace(schema, element);
DomToSchemaProcessor processor = new DomToSchemaProcessor(resolver, prismContext);
processor.parseSchema(schema, element, isRuntime, allowDelayedItemDefinitions, shortDescription);
return schema;
}