Document doc = documentBuilder.parse(new ByteArrayInputStream(plan));
// v1.1 switched from configId to moduleId
String configId = doc.getDocumentElement().getAttribute("configId");
if (configId != null && !("".equals(configId))) {
StringWriter sw = new StringWriter();
new Upgrade1_0To1_1().upgrade(new ByteArrayInputStream(plan), sw);
// have to store the original and upgraded plans in the session
// because the buffer size for render parameters is sometimes not
// big enough
actionRequest.getPortletSession().setAttribute(MIGRATED_PLAN_PARM, sw.getBuffer());
actionRequest.getPortletSession().setAttribute(ORIGINAL_PLAN_PARM, new String(plan));