@Override
protected void createPlugins(List<BrokerPlugin> plugins) throws Exception {
BrokerPlugin failOnSpecificConditionsPlugin = new BrokerPlugin() {
@Override
public Broker installPlugin(Broker broker) throws Exception {
return new BrokerFilter(broker) {
@Override
public void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception {
String clientId = info.getClientId();
if (clientId != null && !clientId.isEmpty()) {
if (clientId.equalsIgnoreCase("invalid")) {