@Override
public AssociationSet getAssociationSet(final String entityContainer, final FullQualifiedName association,
final String sourceEntitySetName, final String sourceEntitySetRole) throws ODataException {
EntityContainer container = null;
if (!entityContainerInfos.containsKey(entityContainer)) {
container = (EntityContainer) getEntityContainerInfo(entityContainer);
} else {
container = (EntityContainer) entityContainerInfos.get(entityContainer);
}
if (container != null && association != null && container.getAssociationSets() != null) {
for (AssociationSet as : container.getAssociationSets()) {
if (association.equals(as.getAssociation())) {
AssociationSetEnd end = as.getEnd1();
if (sourceEntitySetName.equals(end.getEntitySet()) && sourceEntitySetRole.equals(end.getRole())) {
return as;
} else {