}
}
public void generateJsonSchema(SchemaOutputResolver outputResolver, Class rootClass) {
JsonSchemaGenerator generator = new JsonSchemaGenerator(this.contextState.getXMLContext(), this.contextState.properties);
JsonSchema schema = generator.generateSchema(rootClass);
try {
Marshaller m = getJsonSchemaMarshaller();
m.marshal(schema, outputResolver.createOutput(null, rootClass.getName() + ".json"));
} catch (Exception ex) {
throw org.eclipse.persistence.exceptions.JAXBException.exceptionDuringSchemaGeneration(ex);