Source:
<code>public TransportConnection(TransportConnector connector, final Transport transport, Broker broker, TaskRunnerFactory taskRunnerFactory, TaskRunnerFactory stopTaskRunnerFactory) { this.connector = connector; this.broker = broker; this.brokerService = broker.getBrokerService(); RegionBroker rb = (RegionBroker) broker.getAdaptor(RegionBroker.class); brokerConnectionStates = rb.getConnectionStates(); if (connector != null) { this.statistics.setParent(connector.getStatistics()); this.messageAuthorizationPolicy = connector.getMessageAuthorizationPolicy(); } this.taskRunnerFactory = taskRunnerFactory; this.stopTaskRunnerFactory = stopTaskRunnerFactory; this.transport = transport; if( this.transport instanceof BrokerServiceAware ) { ((BrokerServiceAware)this.transport).setBrokerService(brokerService); } this.transport.setTransportListener(new DefaultTransportListener() { @Override public void onCommand(Object o) { serviceLock.readLock().lock(); try { if (!(o instanceof Command)) { throw new RuntimeException("Protocol violation - Command corrupted: " + o.toString()); } Command command = (Command) o; final int[] processDuringShutdown = { CommandTypes.SHUTDOWN_INFO, CommandTypes.REMOVE_INFO }; if (!brokerService.isStopping() || Arrays.asList(processDuringShutdown).contains(command.getDataStructureType())) { Response response = service(command); <START> if (response != null && Arrays.asList(processDuringShutdown).contains(command.getDataStructureType())) { <END> dispatchSync(response); } } else { throw new BrokerStoppedException("Broker " + brokerService + " is being stopped"); } } finally { serviceLock.readLock().unlock(); } } @Override public void onException(IOException exception) { serviceLock.readLock().lock(); try { serviceTransportException(exception); } finally { serviceLock.readLock().unlock(); } } }); connected = true; }</code><technical_language>This bit filter response a ShutdownInfo a RemoveInfo response I want do</technical_language>

Target:
public TransportConnection(TransportConnector connector, final Transport transport, Broker broker, TaskRunnerFactory taskRunnerFactory, TaskRunnerFactory stopTaskRunnerFactory) { this.connector = connector; this.broker = broker; this.brokerService = broker.getBrokerService(); RegionBroker rb = (RegionBroker) broker.getAdaptor(RegionBroker.class); brokerConnectionStates = rb.getConnectionStates(); if (connector != null) { this.statistics.setParent(connector.getStatistics()); this.messageAuthorizationPolicy = connector.getMessageAuthorizationPolicy(); } this.taskRunnerFactory = taskRunnerFactory; this.stopTaskRunnerFactory = stopTaskRunnerFactory; this.transport = transport; if( this.transport instanceof BrokerServiceAware ) { ((BrokerServiceAware)this.transport).setBrokerService(brokerService); } this.transport.setTransportListener(new DefaultTransportListener() { @Override public void onCommand(Object o) { serviceLock.readLock().lock(); try { if (!(o instanceof Command)) { throw new RuntimeException("Protocol violation - Command corrupted: " + o.toString()); } Command command = (Command) o; Response response = service(command); if (response != null) { dispatchSync(response); } } finally { serviceLock.readLock().unlock(); } } @Override public void onException(IOException exception) { serviceLock.readLock().lock(); try { serviceTransportException(exception); } finally { serviceLock.readLock().unlock(); } } }); connected = true; }