code: String convertLatex(String latexContent) throws MathConverterException {
          LaTeXMLConverter converter = new LaTeXMLConverter(config.getLatexml());
          try {
              NativeResponse rep = converter.parseAsService(latexContent);
              if (rep.getStatusCode() == 0) {
                  return rep.getResult();
              } else {
                  logger.error(String.format("LaTeXMLServiceResponse follows:\n"
                                  + "statusCode: %s\nlog: %s\nresult: %s",
                          rep.getStatusCode(), rep.getMessage(), rep.getResult()));
                  throw new MathConverterException("latexml conversion had an error");
              }
          } catch (Exception e) {
              logger.error("latex conversion failed", e);
              throw new MathConverterException("latex conversion failed");
          }
      }
docs: Converts from latex to full MathML that contains
  pMML and cMML semantics. <br/>
  This method relies on LaTeXMLo.
  
  @param latexContent latex formula
  @return well formatted mathml
  @throws MathConverterException conversion failed, simple info text included