@Override
  public boolean equals(final Object obj)
  {
	if (obj == this)
	{
	  return true;
	}
	if (SampleRoundingContext.class.isInstance(obj))
	{
	  final SampleRoundingContext other = (SampleRoundingContext) obj;
	  if (currencyPair.equals(other.currencyPair) && tenor.equals(other.tenor))
	  {
		if (getRole() == null)
		{
		  return other.getRole() == null;
		}
		else
		{
		  return getRole().equals(other.getRole());
		}
	  }
	}
	return false;
  }