class OWL2JavaTransformer {

    public void setOntology(final String owlOntologyName, final String mappingFile) {
        this.ontology = getWholeOntology(owlOntologyName, mappingFile);

        LOG.debug("Parsing integrity constraints");

        ontology.axioms().forEach(a -> {
            defaultContext.addAxiom(a);
            for (final String icContextName : getContexts(a)) {
                ContextDefinition ctx = getContextDefinition(icContextName);
                ctx.addAxiom(a);
            }
        });
        registerEntitiesInContexts();

        defaultContext.parse();
        for (final ContextDefinition ctx : contexts.values()) {
            ctx.parse();
        }

        LOG.debug("Integrity constraints successfully parsed.");
    }

}