final List<OProperty<?>> properties = new ArrayList<OProperty<?>>();
final List<OLink> links = new ArrayList<OLink>();
EdmEntityType eet = ees.getType();
String entityKeyName = eet.getKeys().get(0);
OEntityKey entityKey = OEntityKey.create(OProperties.int64(entityKeyName, entity.getKey().getId()));
if (queryInfo == null || queryInfo.select == null || queryInfo.select.size() == 0 || containsProperty(queryInfo.select, entityKeyName, parentPropName)) {
properties.add(OProperties.int64(entityKeyName, entity.getKey().getId()));
}
for (String propName : entity.getProperties().keySet()) {