private Collection<EntityModel> parseEntityModel() {
EntityModelFactory factory = new EntityModelFactory(env);
Collection<EntityModel> result = new ArrayList<EntityModel>();
for (TypeElement element : getTypeElementCandidates()) {
EntityModel entityModel = factory.create(element);
result.add(entityModel);
}
for (ExecutableElement method : getExecutableElementCandidates()) {
if (isMethodCandidate(method)) {
TypeElement element = modelHelper.safeToTypeElement(method.getReturnType());
if (element != null) {
EntityModel entityModel = factory.create(element, method);
result.add(entityModel);
}
}
}
return result;