// run simple method script to get a list of entities
Document simpleDoc = UtilXml.readXmlDocument(xmlScript);
Element simpleElem = simpleDoc.getDocumentElement();
SimpleMethod meth = new SimpleMethod(simpleElem, null, null);
MethodContext methodContext = new MethodContext(request, response, null);
String retStr = meth.exec(methodContext); //Need to check return string
List<GenericValue> entityList = UtilGenerics.cast(request.getAttribute("entityList"));
request.setAttribute("entityList", entityList);
} catch (TemplateException ioe) {
sendError(response, "Problem handling event");