Program: 13309
Project: 13309
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public Map<String,Object> query(ServerContext context,String fullId,Map<String,String> params) throws ResourceException {
  final String[] split=AuditServiceImpl.splitFirstLevel(fullId);
  final String type=split[0];
  try {
    boolean formatted=true;
    if (params.get("String_Node_Str") != null && !AuditServiceImpl.getBoolValue(params.get("String_Node_Str"))) {
      formatted=false;
    }
    QueryRequest request=Requests.newQueryRequest(location + "String_Node_Str" + type);
    request.setQueryId(params.get("String_Node_Str"));
    request.getAdditionalQueryParameters().putAll(params);
    final List<Map<String,Object>> queryResults=new ArrayList<Map<String,Object>>();
    routerContext.getConnection().query(context,request,new QueryResultHandler(){
      @Override public void handleError(      ResourceException error){
      }
      @Override public boolean handleResource(      Resource resource){
        queryResults.add(resource.getContent().asMap());
        return true;
      }
      @Override public void handleResult(      QueryResult result){
      }
    }
);
    if (AuditServiceImpl.TYPE_RECON.equals(type)) {
      return AuditServiceImpl.getReconResults(queryResults,params.get("String_Node_Str"),formatted);
    }
 else     if (AuditServiceImpl.TYPE_ACTIVITY.equals(type)) {
      return AuditServiceImpl.getActivityResults(unflattenActivityList(queryResults),formatted);
    }
 else     if (AuditServiceImpl.TYPE_ACCESS.equals(type)) {
      return AuditServiceImpl.getAccessResults(queryResults,formatted);
    }
 else {
      String queryId=params.get("String_Node_Str");
      throw new BadRequestException("String_Node_Str" + queryId + "String_Node_Str"+ type);
    }
  }
 catch (  Exception e) {
    throw new BadRequestException(e);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Map<String,Object> query(ServerContext context,String fullId,Map<String,String> params) throws ResourceException {
  final String[] split=AuditServiceImpl.splitFirstLevel(fullId);
  final String type=split[0];
  try {
    boolean formatted=true;
    if (params.get("String_Node_Str") != null && !AuditServiceImpl.getBoolValue(params.get("String_Node_Str"))) {
      formatted=false;
    }
    QueryRequest request=Requests.newQueryRequest(location + "String_Node_Str" + type);
    request.setQueryId(params.get("String_Node_Str"));
    request.getAdditionalQueryParameters().putAll(params);
    final List<Map<String,Object>> queryResults=new ArrayList<Map<String,Object>>();
    routerContext.getConnection().query(context,request,new QueryResultHandler(){
      @Override public void handleError(      ResourceException error){
      }
      @Override public boolean handleResource(      Resource resource){
        queryResults.add(resource.getContent().asMap());
        return true;
      }
      @Override public void handleResult(      QueryResult result){
      }
    }
);
    if (AuditServiceImpl.TYPE_RECON.equals(type)) {
      return AuditServiceImpl.getReconResults(queryResults,formatted);
    }
 else     if (AuditServiceImpl.TYPE_ACTIVITY.equals(type)) {
      return AuditServiceImpl.getActivityResults(unflattenActivityList(queryResults),formatted);
    }
 else     if (AuditServiceImpl.TYPE_ACCESS.equals(type)) {
      return AuditServiceImpl.getAccessResults(queryResults,formatted);
    }
 else {
      String queryId=params.get("String_Node_Str");
      throw new BadRequestException("String_Node_Str" + queryId + "String_Node_Str"+ type);
    }
  }
 catch (  Exception e) {
    throw new BadRequestException(e);
  }
}