public JsonResponse<T> addCookie(NewCookie newCookie){
  if (cookies == null) {
    cookies=new ArrayList<NewCookie>();
  }
  cookies.add(newCookie);
  return this;
}

public JsonResponse < T > addCookie ( NewCookie newCookie ) { if ( cookies == null ) { cookies = new ArrayList < NewCookie > ( ) ; } cookies . add ( newCookie ) ; return this ; }
add cookie for building .
