}
@Override
public EdmAssociationSet getAssociationSet(final EdmEntitySet sourceEntitySet,
final EdmNavigationProperty navigationProperty) throws EdmException {
EdmAssociation edmAssociation = navigationProperty.getRelationship();
String association = edmAssociation.getNamespace() + "." + edmAssociation.getName();
String entitySetName = sourceEntitySet.getName();
String entitySetFromRole = navigationProperty.getFromRole();
String key = entitySetName + ">>" + association + ">>" + entitySetFromRole;
EdmAssociationSet edmAssociationSet = edmAssociationSets.get(key);
if (edmAssociationSet != null) {
return edmAssociationSet;
}
AssociationSet associationSet;
FullQualifiedName associationFQName =
new FullQualifiedName(edmAssociation.getNamespace(), edmAssociation.getName());
try {
associationSet =
edm.edmProvider.getAssociationSet(entityContainerInfo.getName(), associationFQName, entitySetName,
entitySetFromRole);
} catch (ODataException e) {