public static String evaluate(Object[] objects) throws IOException {
    ByteArrayOutputStream bas = new ByteArrayOutputStream();
    DataOutputStream dos = new DataOutputStream(bas);
    for (Object object : objects) {
      String res;
      boolean error = false;
      try {
        res = object.toString();
        if (res == null) {
          res = "null";
        }
      }
      catch (Throwable e) {
        res = e.getClass().getName();
        error = true;
      }

      dos.writeBoolean(error);
      dos.writeUTF(res);
    }
    return bas.toString("ISO-8859-1");
  }
public static String evaluate(Object[] objects)