Program: 13308
Project: 13308
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public Map<String,Object> query(ServerContext context,String fullId,Map<String,String> params) throws ResourceException {
  String queryId=params.get("String_Node_Str");
  boolean formatted=true;
  String[] split=AuditServiceImpl.splitFirstLevel(fullId);
  String type=split[0];
  try {
    if (params.get("String_Node_Str") != null && !AuditServiceImpl.getBoolValue(params.get("String_Node_Str"))) {
      formatted=false;
    }
    QueryRequest request=Requests.newQueryRequest(repoPrefix + fullId);
    request.setQueryId(queryId);
    request.getAdditionalQueryParameters().putAll(params);
    final List<Map<String,Object>> queryResults=new ArrayList<Map<String,Object>>();
    context.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 (type.equals(AuditServiceImpl.TYPE_RECON)) {
      return AuditServiceImpl.getReconResults(queryResults,params.get("String_Node_Str"),formatted);
    }
 else     if (type.equals(AuditServiceImpl.TYPE_ACTIVITY)) {
      formatActivityList(queryResults);
      return AuditServiceImpl.getActivityResults(queryResults,formatted);
    }
 else     if (type.equals(AuditServiceImpl.TYPE_ACCESS)) {
      return AuditServiceImpl.getAccessResults(queryResults,formatted);
    }
 else {
      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 {
  String queryId=params.get("String_Node_Str");
  boolean formatted=true;
  String[] split=AuditServiceImpl.splitFirstLevel(fullId);
  String type=split[0];
  try {
    if (params.get("String_Node_Str") != null && !AuditServiceImpl.getBoolValue(params.get("String_Node_Str"))) {
      formatted=false;
    }
    QueryRequest request=Requests.newQueryRequest(repoPrefix + fullId);
    request.setQueryId(queryId);
    request.getAdditionalQueryParameters().putAll(params);
    final List<Map<String,Object>> queryResults=new ArrayList<Map<String,Object>>();
    context.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 (type.equals(AuditServiceImpl.TYPE_RECON)) {
      return AuditServiceImpl.getReconResults(queryResults,formatted);
    }
 else     if (type.equals(AuditServiceImpl.TYPE_ACTIVITY)) {
      formatActivityList(queryResults);
      return AuditServiceImpl.getActivityResults(queryResults,formatted);
    }
 else     if (type.equals(AuditServiceImpl.TYPE_ACCESS)) {
      return AuditServiceImpl.getAccessResults(queryResults,formatted);
    }
 else {
      throw new BadRequestException("String_Node_Str" + queryId + "String_Node_Str"+ type);
    }
  }
 catch (  Exception e) {
    throw new BadRequestException(e);
  }
}