@Override public MathsEpsReturn getEps(MathsEpsParams params) { long start = System.currentTimeMillis(); MathsEpsReturn result = new MathsEpsReturn(); result.setOk(false); result.setEps(EMPTY); result.setError(""); try { // Parse XML Document mathml = parseMathml(params, result, start); if (mathml == null) { return result; } return getEps(params, mathml, result, start); } catch (Throwable t) { result.setError("MathML unexpected error - " + t.getMessage()); t.printStackTrace(); return result; } }