public <E extends OWLEntity> E generateAndLogParseError(
@Nonnull EntityType<E> entityType, @Nonnull IRI mainNode) {
E entity = getErrorEntity(entityType);
RDFResource mainNodeResource = getRDFResource(mainNode);
Set<RDFTriple> mainNodeTriples = getTriplesForMainNode(mainNode);
RDFResourceParseError error = new RDFResourceParseError(entity,
mainNodeResource, mainNodeTriples);
logError(error);
return entity;
}