try {
associationSet =
edm.edmProvider.getAssociationSet(entityContainer.getName(), associationFQName, entitySetName,
entitySetFromRole);
} catch (ODataException e) {
throw new EdmException(EdmException.PROVIDERPROBLEM, e);
}
if (associationSet != null) {
edmAssociationSet = createAssociationSet(associationSet);
edmAssociationSets.put(key, edmAssociationSet);
return edmAssociationSet;
} else if (edmExtendedEntityContainer != null) {
edmAssociationSet = edmExtendedEntityContainer.getAssociationSet(sourceEntitySet, navigationProperty);
edmAssociationSets.put(key, edmAssociationSet);
return edmAssociationSet;
} else {
throw new EdmException(EdmException.COMMON);
}
}