code: public static void main(String[] args) {
      try {
        System.out.println(EntityMap.makeNumeric("A string &copy; another", true));
      } catch (Throwable t) {
        System.out.println(t.getMessage());
        t.printStackTrace();
      }
    }
docs: Test it
  @param args