class Const {

  public static Date addTimeToDate( Date input, String time, String dateFormat ) throws Exception {
    if ( Utils.isEmpty( time ) ) {
      return input;
    }
    if ( input == null ) {
      return null;
    }
    String dateformatString = NVL( dateFormat, "HH:mm:ss" );
    int t = decodeTime( time, dateformatString );
    return new Date( input.getTime() + t );
  }

}