return new FieldObject(messageModel, field);
}
private OWLNamedIndividual getFieldById(int entityId, MessageModel model) {
String fieldName = null;
Set<OWLNamedIndividual> fields =
<BUG>model.getReasoner().getInstances(fieldClass, true).getFlattened();
for (OWLNamedIndividual fieldInd : fields) {</BUG>
Set<OWLLiteral> values = model.getReasoner().getDataPropertyValues(fieldInd, hasIdProperty);
final OWLLiteral first = values.iterator().next();
if (first != null && first.parseInteger() == entityId) {

return new FieldObject(messageModel, field);
}
private OWLNamedIndividual getFieldById(int entityId, MessageModel model) {
String fieldName = null;
Set<OWLNamedIndividual> fields =
model.getReasoner().getInstances(fieldClass, true).entities().collect(Collectors.toSet());
for (OWLNamedIndividual fieldInd : fields) {
Set<OWLLiteral> values = model.getReasoner().getDataPropertyValues(fieldInd, hasIdProperty);
final OWLLiteral first = values.iterator().next();
if (first != null && first.parseInteger() == entityId) {
