protected ServletContext servletContext;
protected ManagementContext mgmt;
@Override
public void init(FilterConfig config) throws ServletException {
servletContext = config.getServletContext();
<BUG>mgmt = (ManagementContext) servletContext.getAttribute(BrooklynServiceAttributes.BROOKLYN_MANAGEMENT_CONTEXT);
}</BUG>
static String lookForProblemIfServerNotRunning(ManagementContext mgmt) {
if (mgmt==null) return "no management context available";
if (!mgmt.isRunning()) return "server no longer running";

protected ServletContext servletContext;
protected ManagementContext mgmt;
@Override
public void init(FilterConfig config) throws ServletException {
servletContext = config.getServletContext();
mgmt = OsgiCompat.getManagementContext(servletContext);
}
static String lookForProblemIfServerNotRunning(ManagementContext mgmt) {
if (mgmt==null) return "no management context available";
if (!mgmt.isRunning()) return "server no longer running";
