import javax.ws.rs.core.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.brooklyn.api.mgmt.ManagementContext;
import org.apache.brooklyn.api.mgmt.ha.ManagementNodeState;
<BUG>import org.apache.brooklyn.core.server.BrooklynServiceAttributes;</BUG>
import org.apache.brooklyn.rest.domain.ApiError;
import org.apache.brooklyn.rest.util.WebResourceUtils;
import org.apache.brooklyn.util.text.Strings;
<BUG>import com.google.common.collect.Sets;
public class HaMasterCheckFilter implements Filter {</BUG>
private static final Logger log = LoggerFactory.getLogger(HaMasterCheckFilter.class);

import javax.ws.rs.core.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.brooklyn.api.mgmt.ManagementContext;
import org.apache.brooklyn.api.mgmt.ha.ManagementNodeState;
import org.apache.brooklyn.rest.domain.ApiError;
import org.apache.brooklyn.rest.util.WebResourceUtils;
import org.apache.brooklyn.util.text.Strings;
import com.google.common.collect.Sets;
import org.apache.brooklyn.rest.util.OsgiCompat;
public class HaMasterCheckFilter implements Filter {
private static final Logger log = LoggerFactory.getLogger(HaMasterCheckFilter.class);
