Program: 30415
Project: 30415
Buggy source:
/** 
 * Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter values
 * @param context information
 */
public void execute(AdminCommandContext context){
  final ActionReport report=context.getActionReport();
  Config tmp=null;
  try {
    tmp=configs.getConfigByName(target);
  }
 catch (  Exception ex) {
  }
  if (tmp != null) {
    config=tmp;
  }
  if (tmp == null) {
    Server targetServer=domain.getServerNamed(target);
    if (targetServer != null) {
      config=domain.getConfigNamed(targetServer.getConfigRef());
    }
    com.sun.enterprise.config.serverbeans.Cluster cluster=domain.getClusterNamed(target);
    if (cluster != null) {
      config=domain.getConfigNamed(cluster.getConfigRef());
    }
  }
  final SecurityService secService=config.getSecurityService();
  List<MessageSecurityConfig> mscs=secService.getMessageSecurityConfig();
  report.getTopMessagePart().setMessage(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
  report.getTopMessagePart().setChildrenType("String_Node_Str");
  for (  MessageSecurityConfig msc : secService.getMessageSecurityConfig()) {
    if (authLayer == null) {
      for (      ProviderConfig pc : msc.getProviderConfig()) {
        ActionReport.MessagePart part=report.getTopMessagePart().addChild();
        part.setMessage(pc.getProviderId());
      }
    }
 else {
      if (msc.getAuthLayer().equals(authLayer)) {
        for (        ProviderConfig pc : msc.getProviderConfig()) {
          ActionReport.MessagePart part=report.getTopMessagePart().addChild();
          part.setMessage(pc.getProviderId());
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter values
 * @param context information
 */
public void execute(AdminCommandContext context){
  final ActionReport report=context.getActionReport();
  Config tmp=null;
  try {
    tmp=configs.getConfigByName(target);
  }
 catch (  Exception ex) {
  }
  if (tmp != null) {
    config=tmp;
  }
  if (tmp == null) {
    Server targetServer=domain.getServerNamed(target);
    if (targetServer != null) {
      config=domain.getConfigNamed(targetServer.getConfigRef());
    }
    com.sun.enterprise.config.serverbeans.Cluster cluster=domain.getClusterNamed(target);
    if (cluster != null) {
      config=domain.getConfigNamed(cluster.getConfigRef());
    }
  }
  final SecurityService secService=config.getSecurityService();
  secService.getMessageSecurityConfig();
  report.getTopMessagePart().setMessage(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
  report.getTopMessagePart().setChildrenType("String_Node_Str");
  for (  MessageSecurityConfig msc : secService.getMessageSecurityConfig()) {
    if (authLayer == null) {
      for (      ProviderConfig pc : msc.getProviderConfig()) {
        ActionReport.MessagePart part=report.getTopMessagePart().addChild();
        part.setMessage(pc.getProviderId());
      }
    }
 else {
      if (msc.getAuthLayer().equals(authLayer)) {
        for (        ProviderConfig pc : msc.getProviderConfig()) {
          ActionReport.MessagePart part=report.getTopMessagePart().addChild();
          part.setMessage(pc.getProviderId());
        }
      }
    }
  }
}