PortletApplication pa = registry.getPortletApplication(paName);
String response = null;
try
{
ApplicationServerManagerResult result = asm.undeploy(pa.getWebApplicationDefinition().getContextRoot());
if (result.isOk())
{
writer.println("Portlet Application " + paName + " undeployed");
writer.println(result.getResponse());
return OK;
}
else
{
writer.println("Error: Portlet Application " + paName + " could not be undeployed");
writer.println(result.getResponse());
return ERROR_SERVER;
}
}
catch (Exception e)
{