Program: 30461
Project: 30461
Buggy source:
private void removeListener(String name){
  final String listenerName=name;
  try {
    NetworkListeners networkListeners=networkConfig.getNetworkListeners();
    final NetworkListener listenerToBeRemoved=networkConfig.getNetworkListener(name);
    final Protocols protocols=networkConfig.getProtocols();
    final Protocol protocol=networkConfig.findProtocol(name);
    if (listenerToBeRemoved == null) {
      log.severe("String_Node_Str" + name + "String_Node_Str");
    }
 else {
      final com.sun.enterprise.config.serverbeans.VirtualServer virtualServer=httpService.getVirtualServerByName(listenerToBeRemoved.findHttpProtocol().getHttp().getDefaultVirtualServer());
      ConfigSupport.apply(new ConfigCode(){
        public Object run(        ConfigBeanProxy... params) throws PropertyVetoException {
          final NetworkListeners listeners=(NetworkListeners)params[0];
          final com.sun.enterprise.config.serverbeans.VirtualServer server=(com.sun.enterprise.config.serverbeans.VirtualServer)params[1];
          listeners.getNetworkListener().remove(listenerToBeRemoved);
          server.removeNetworkListener(listenerToBeRemoved.getName());
          return listenerToBeRemoved;
        }
      }
,networkListeners,virtualServer);
      ConfigSupport.apply(new ConfigCode(){
        public Object run(        ConfigBeanProxy... params) throws PropertyVetoException {
          final Protocols protocols=(Protocols)params[0];
          final Protocol protocol=(Protocol)params[1];
          protocols.getProtocol().remove(protocol);
          return protocol;
        }
      }
,protocols,protocol);
    }
  }
 catch (  TransactionFailure e) {
    log.severe("String_Node_Str" + name + "String_Node_Str"+ e.getMessage());
  }
}

Fixed version (ground truth):
private void removeListener(String name){
  try {
    NetworkListeners networkListeners=networkConfig.getNetworkListeners();
    final NetworkListener listenerToBeRemoved=networkConfig.getNetworkListener(name);
    final Protocols protocols=networkConfig.getProtocols();
    final Protocol protocol=networkConfig.findProtocol(name);
    if (listenerToBeRemoved == null) {
      log.severe("String_Node_Str" + name + "String_Node_Str");
    }
 else {
      final com.sun.enterprise.config.serverbeans.VirtualServer virtualServer=httpService.getVirtualServerByName(listenerToBeRemoved.findHttpProtocol().getHttp().getDefaultVirtualServer());
      ConfigSupport.apply(new ConfigCode(){
        public Object run(        ConfigBeanProxy... params) throws PropertyVetoException {
          final NetworkListeners listeners=(NetworkListeners)params[0];
          final com.sun.enterprise.config.serverbeans.VirtualServer server=(com.sun.enterprise.config.serverbeans.VirtualServer)params[1];
          listeners.getNetworkListener().remove(listenerToBeRemoved);
          server.removeNetworkListener(listenerToBeRemoved.getName());
          return listenerToBeRemoved;
        }
      }
,networkListeners,virtualServer);
      ConfigSupport.apply(new ConfigCode(){
        public Object run(        ConfigBeanProxy... params) throws PropertyVetoException {
          final Protocols protocols=(Protocols)params[0];
          final Protocol protocol=(Protocol)params[1];
          protocols.getProtocol().remove(protocol);
          return protocol;
        }
      }
,protocols,protocol);
    }
  }
 catch (  TransactionFailure e) {
    log.severe("String_Node_Str" + name + "String_Node_Str"+ e.getMessage());
  }
}