code: public static void copy(UnitResponse from, UnitResponse to) {
          //remember to modify this method when new properties are added.
          to.setCode(from.code).setData(from.data).setContext(from.context.clone()).setMessage(from.message);
      }
docs: copy all properties from one response object ot another response object.
  
  @param from the source
  @param to   the destiny