ClassLoader previousLoader = t.getContextClassLoader();
try {
ClassLoader newClassLoader = ctx
.getRegistry().getModelAwareClassLoader(getClass().getClassLoader());
t.setContextClassLoader(newClassLoader);
parameters.put(DICTIONARY_HELPER, new DictionaryHelperImpl(processInstance));
if (jasperReport.getQuery() != null && jasperReport.getQuery().getLanguage().equals("xPath")) {
XStream xs = new XStream();
xs.registerConverter(new MyPersistentSetConverter(xs.getMapper()), XStream.PRIORITY_VERY_HIGH);
xs.omitField(ProcessInstance.class, "definition");
xs.omitField(ProcessInstance.class, "processLogs");