static boolean resultsEquals(Object val1, Object val2) {
      if (val1 == null || val2 == null) {
        return val1 == val2;
      }
      if (val1 instanceof StringReference && val2 instanceof StringReference) {
        return ((StringReference)val1).value().equals(((StringReference)val2).value());
      }
      return val1.equals(val2);
    }
static boolean resultsEquals(Object val1, Object val2)