private ManchesterOWLSyntaxParser createParser(@Nonnull String expression) {
if (disposed.get()) {
throw new OWLRuntimeException(
"Illegal State: Trying to use an disposed instance.");
}
ManchesterOWLSyntaxParser parser = new ManchesterOWLSyntaxParserImpl(
new OWLAPIConfigProvider(), dataFactory);
parser.setStringToParse(expression);
parser.setOWLEntityChecker(entityChecker);
LOG.info("parsing: {}", expression);
return parser;
}