private void validateAssociationEnd(final EdmAssociationSetEnd end, final EdmAssociation association) throws EntityProviderException, EdmException { if (!(association.getEnd1().getRole().equals(end.getRole()) ^ association .getEnd2().getRole().equals(end.getRole()))) { throw new EntityProviderException(EntityProviderException.COMMON.addContent("Invalid Association")); } }