docs: public static Number createNumber(String str) throws ParseException
      {
          try
          {
              if (str.indexOf('.') != -1)
              {
                  return Double.valueOf(str);
              }
              return Long.valueOf(str);
          }
          catch (NumberFormatException e)
          {
              throw new ParseException(e.getMessage());
          }
      }