class TermDepositTemplate implements TradeTemplate, ImmutableBean, Serializable {

  public static TermDepositTemplate of(Period depositPeriod, TermDepositConvention convention) {
    ArgChecker.notNull(depositPeriod, "depositPeriod");
    ArgChecker.notNull(convention, "convention");
    return TermDepositTemplate.builder()
        .depositPeriod(depositPeriod)
        .convention(convention)
        .build();
  }

  private  TermDepositTemplate(
      Period depositPeriod,
      TermDepositConvention convention);

}