code: public static DayCountConventionInterface getDayCountConvention(String convention) {
  		if(convention.compareToIgnoreCase("act/act isda") == 0) {
  			return new DayCountConvention_ACT_ACT_ISDA();
  		}
  		else if(convention.compareToIgnoreCase("30/360") == 0) {
  			return new DayCountConvention_30E_360_ISDA();
  		}
  		else if(convention.compareToIgnoreCase("30e/360") == 0) {
  			return new DayCountConvention_30E_360();
  		}
  		else if(convention.compareToIgnoreCase("30u/360") == 0) {
  			return new DayCountConvention_30U_360();
  		}
  		else if(convention.compareToIgnoreCase("act/360") == 0) {
  			return new DayCountConvention_ACT_360();
  		}
  		else if(convention.compareToIgnoreCase("act/365") == 0) {
  			return new DayCountConvention_ACT_365();
  		}
  		else if(convention.compareToIgnoreCase("act/act yearfrac") == 0) {
  			return new DayCountConvention_ACT_ACT_YEARFRAC();
  		}
  
  		throw new IllegalArgumentException("Unknow day count convention: " + convention);
  	}
docs: Create a day count convention base on a convention string.
  The follwoing convention strings are supported
  <ul>
  <li>act/act isda</li>
  <li>30/360</li>
  <li>30E/360</li>
  <li>30U/360</li>
  <li>act/360</li>
  <li>act/365</li>
  <li>act/act yearfrac</li>
  </ul>
  
  @param convention A convention string.
  @return A day count convention object.