@Override
public EntitySet getEntitySet(final String entityContainer, final String name) throws ODataException {
if (ENTITY_CONTAINER_1.equals(entityContainer)) {
if (ENTITY_SET_1_1.equals(name)) {
return new EntitySet().setName(name).setEntityType(ENTITY_TYPE_1_1);
} else if (ENTITY_SET_1_2.equals(name)) {
return new EntitySet().setName(name).setEntityType(ENTITY_TYPE_1_2);
} else if (ENTITY_SET_1_3.equals(name)) {
return new EntitySet().setName(name).setEntityType(ENTITY_TYPE_1_3);
} else if (ENTITY_SET_1_4.equals(name)) {
return new EntitySet().setName(name).setEntityType(ENTITY_TYPE_1_4);
} else if (ENTITY_SET_1_5.equals(name)) {
return new EntitySet().setName(name).setEntityType(ENTITY_TYPE_1_5);
}
} else if (ENTITY_CONTAINER_2.equals(entityContainer)) {
if (ENTITY_SET_2_1.equals(name)) {
return new EntitySet().setName(name).setEntityType(ENTITY_TYPE_2_1);
}
}
return null;
}