code: public Iteration createIteration(String name, DateTime beginDate, DateTime endDate,
                                       Map<String, Object> attributes) {
          return getInstance().create().iteration(name, getSchedule(), beginDate, endDate, attributes);
      }
docs: Create a new Iteration in the Project where the schedule is defined.
  
  @param name       The initial name of the Iteration.
  @param beginDate  The begin date of the Iteration.
  @param endDate    The end date of the Iteration.
  @param attributes additional attributes for Iteration.
  @return A new Iteration.