if(result.isPresent()) {
Set<OWLEntity> entities = sfp.getEntities(shortForm);
for(OWLEntity matchingEntity : entities) {
Optional<OWLEntityData> match = toOWLEntityData(matchingEntity, entityLookupRequest, rm);
if(match.isPresent()) {
EntityNameMatchResult resultValue = result.get();
matches.add(new OWLEntityDataMatch(match.get(), resultValue));
}
// BAD
if(matches.size() >= 1000) {
break;