private void processTransform(
HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
String queryName = request.getParameter("query");
ResultCache rc =
ResultCache.getInstance(
request.getSession(), getServletContext(), queryName);
Query query = rc.getQuery();
query = query.clone();
rc.setDirty();
String operation = request.getParameter("operation");
if (operation.equals("expand")) {
String memberName = request.getParameter("member");
boolean fail = true;
Member member = query.getSchemaReader(true).getMemberByUniqueName(
Util.parseIdentifier(memberName), fail);
if (true) {
throw new UnsupportedOperationException(
"query.toggleDrillState(member) has been de-supported");
}
} else {
throw Util.newInternal("unkown operation '" + operation + "'");
}
rc.setQuery(query);
String redirect = request.getParameter("redirect");
if (redirect == null) {
redirect = "/adhoc.jsp";
}
response.setHeader("Content-Type", "text/html");