Program: 171032
Project: 171032
Buggy source:
/** 
 * Fetch the complete definition of an entity given its GUID.
 * @param guid GUID for the entity
 */
@GET @Path("String_Node_Str") @Produces(Servlets.JSON_MEDIA_TYPE) public Response getEntityDefinition(@PathParam("String_Node_Str") String guid){
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",guid);
  }
  AtlasPerfTracer perf=null;
  try {
    if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
      perf=AtlasPerfTracer.getPerfTracer(PERF_LOG,"String_Node_Str" + guid + "String_Node_Str");
    }
    if (LOG.isDebugEnabled()) {
      LOG.debug("String_Node_Str",guid);
    }
    guid=ParamChecker.notEmpty(guid,"String_Node_Str");
    Referenceable entity=getEntity(guid);
    ObjectNode response=AtlasJson.createV1ObjectNode(AtlasClient.REQUEST_ID,Servlets.getRequestId());
    Response.Status status=Response.Status.NOT_FOUND;
    if (entity != null) {
      response.putPOJO(AtlasClient.DEFINITION,entity);
      status=Response.Status.OK;
    }
 else {
      response.put(AtlasClient.ERROR,Servlets.escapeJsonString(String.format("String_Node_Str",guid)));
    }
    return Response.status(status).entity(response).build();
  }
 catch (  IllegalArgumentException e) {
    LOG.error("String_Node_Str",guid,e);
    throw new WebApplicationException(Servlets.getErrorResponse(e,Response.Status.BAD_REQUEST));
  }
catch (  WebApplicationException e) {
    LOG.error("String_Node_Str",guid,e);
    throw e;
  }
catch (  Throwable e) {
    LOG.error("String_Node_Str",guid,e);
    throw new WebApplicationException(Servlets.getErrorResponse(e,Response.Status.INTERNAL_SERVER_ERROR));
  }
 finally {
    AtlasPerfTracer.log(perf);
    if (LOG.isDebugEnabled()) {
      LOG.debug("String_Node_Str",guid);
    }
  }
}

Fixed version (ground truth):
/** 
 * Fetch the complete definition of an entity given its GUID.
 * @param guid GUID for the entity
 */
@GET @Path("String_Node_Str") @Produces(Servlets.JSON_MEDIA_TYPE) public Response getEntityDefinition(@PathParam("String_Node_Str") String guid){
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str",guid);
  }
  AtlasPerfTracer perf=null;
  try {
    if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
      perf=AtlasPerfTracer.getPerfTracer(PERF_LOG,"String_Node_Str" + guid + "String_Node_Str");
    }
    if (LOG.isDebugEnabled()) {
      LOG.debug("String_Node_Str",guid);
    }
    guid=ParamChecker.notEmpty(guid,"String_Node_Str");
    Referenceable entity=getEntity(guid);
    ObjectNode response=AtlasJson.createV1ObjectNode(AtlasClient.REQUEST_ID,Servlets.getRequestId());
    Response.Status status=Response.Status.NOT_FOUND;
    if (entity != null) {
      response.putPOJO(AtlasClient.DEFINITION,entity);
      status=Response.Status.OK;
    }
 else {
      response.put(AtlasClient.ERROR,Servlets.escapeJsonString(String.format("String_Node_Str",guid)));
    }
    return Response.status(status).entity(response).build();
  }
 catch (  IllegalArgumentException e) {
    LOG.error("String_Node_Str",guid,e);
    throw new WebApplicationException(Servlets.getErrorResponse(e,Response.Status.BAD_REQUEST));
  }
catch (  AtlasBaseException e) {
    LOG.error("String_Node_Str",guid,e);
    throw toWebApplicationException(e);
  }
catch (  WebApplicationException e) {
    LOG.error("String_Node_Str",guid,e);
    throw e;
  }
catch (  Throwable e) {
    LOG.error("String_Node_Str",guid,e);
    throw new WebApplicationException(Servlets.getErrorResponse(e,Response.Status.INTERNAL_SERVER_ERROR));
  }
 finally {
    AtlasPerfTracer.log(perf);
    if (LOG.isDebugEnabled()) {
      LOG.debug("String_Node_Str",guid);
    }
  }
}