private void validateCreateInformation(Date startTime,String taskName){
  Assert.notNull(startTime,"TaskExecution start time cannot be null.");
  if (taskName != null && taskName.length() > this.maxTaskNameSize) {
    throw new IllegalArgumentException("TaskName length exceeds " + this.maxTaskNameSize + " characters");
  }
}

private void validateCreateInformation ( Date startTime , String taskName ) { Assert . notNull ( startTime , "TaskExecution start time cannot be null." ) ; if ( taskName != null && taskName . length ( ) > this . maxTaskNameSize ) { throw new IllegalArgumentException ( "TaskName length exceeds " + this . maxTaskNameSize + " characters" ) ; } }
validate starttime and taskname are valid .
