anchor.diff:                          <c:if test="${not empty day.activities}">
                               <c:forEach items="${day.activities}" var="sa">
                                   arrayOfActivities = arrayOfActivities+'${sa.gridId}'+';';
  -                                var mapOfParametersForOne={
  -                                    '${sa.gridId}': {
  -                                        "reason": reason,
  -                                        "date": shiftedDate,
  -                                        "state" : '${sa.currentState}'
  -                                    }
  +                                mapOfParameters['${sa.gridId}']={
  +                                    "reason": reason,
  +                                    "date": shiftedDate,
  +                                    "state" : '${sa.currentState}'
                                   };
  -                                mapOfParameters = mapOfParameters + mapOfParametersForOne
                               </c:forEach>
                           </c:if>
                       </c:if>
  
positive.code:                 reason = $$('#new-reason-input-group input')[0].value
              }
  
              var arrayOfActivities='';
              var mapOfParameters='';
              var events = $$('.event')
              for(var i = 0; i< events.length; i++ ){
                  if (events[i].checked){
                      if (state == "") {
                          state = $$('.event')[2].up('li').className.toLowerCase()
                      }
                      var date = events[i].up('.day').down('h3').innerHTML
                      var dateInDateFormat = convertStringToDate(date)
                      var shiftedDate = shiftDateByNumberOfDays(dateInDateFormat.getTime(), toDate)
                      var mapOfParametersForOne={
                          'events[i].value': {
                              "reason": reason,
                              "date": shiftedDate,
                              "state" : state
                          }
                      };
                      mapOfParameters = mapOfParameters + mapOfParametersForOne
                      arrayOfActivities = arrayOfActivities+events[i].value+';'
                  }
              }
              post(arrayOfActivities, Object.toJSON(mapOfParameters) );
          }
  
  
negative.code:             SC.asyncRequest('${collectionResource}'+'/' + arrayOfActivities, Object.extend({
                  method: 'POST',
                  contentType: 'application/json',
                  postBody: parameters
              }))
          }
  
  