Program: 7226
Project: 7226
Buggy source:
@Override public Response execute() throws APIException, AbortException {
  if (null == serverConfig) {
    LOGGER.severe("String_Node_Str" + cmd.getCommandName() + "String_Node_Str");
    throw new AbortException("String_Node_Str" + cmd.getCommandName() + "String_Node_Str");
  }
  Response res;
  KeyedObjectPool<IntegrityConfigurable,ISession> pool=ISessionPool.getInstance().getPool();
  try {
    LOGGER.log(Level.FINEST,"String_Node_Str" + serverConfig.getName() + "String_Node_Str"+ cmd.getCommandName());
    api=pool.borrowObject(serverConfig);
    res=execute(api);
  }
 catch (  NoSuchElementException e) {
    try {
      pool.invalidateObject(serverConfig,api);
    }
 catch (    Exception e1) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e1);
      api=null;
    }
    api=null;
    LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage(),e);
    throw new AbortException("String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage());
  }
catch (  IllegalStateException e) {
    try {
      pool.invalidateObject(serverConfig,api);
    }
 catch (    Exception e1) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e1);
      api=null;
    }
    api=null;
    LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage(),e);
    throw new AbortException("String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage());
  }
catch (  Exception e) {
    try {
      pool.invalidateObject(serverConfig,api);
    }
 catch (    Exception e1) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e1);
      api=null;
    }
    api=null;
    LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage(),e);
    throw new AbortException("String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage());
  }
 finally {
    try {
      if (null != api && !runCommandWithInterim) {
        LOGGER.log(Level.FINEST,"String_Node_Str" + serverConfig.getName());
        pool.returnObject(serverConfig,api);
      }
    }
 catch (    Exception e) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e);
    }
  }
  return res;
}

Fixed version (ground truth):
@Override public Response execute() throws APIException, AbortException {
  if (null == serverConfig) {
    LOGGER.severe("String_Node_Str" + cmd.getCommandName() + "String_Node_Str");
    throw new AbortException("String_Node_Str" + cmd.getCommandName() + "String_Node_Str");
  }
  Response res;
  KeyedObjectPool<IntegrityConfigurable,ISession> pool=ISessionPool.getInstance().getPool();
  try {
    LOGGER.log(Level.FINEST,"String_Node_Str" + serverConfig.getName() + "String_Node_Str"+ cmd.getCommandName());
    api=pool.borrowObject(serverConfig);
    res=execute(api);
  }
 catch (  NoSuchElementException e) {
    try {
      if (api != null)       pool.invalidateObject(serverConfig,api);
    }
 catch (    Exception e1) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e1);
      if (api != null)       api=null;
    }
    api=null;
    LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage(),e);
    throw new AbortException("String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage());
  }
catch (  IllegalStateException e) {
    try {
      if (api != null)       pool.invalidateObject(serverConfig,api);
    }
 catch (    Exception e1) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e1);
      if (api != null)       api=null;
    }
    api=null;
    LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage(),e);
    throw new AbortException("String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage());
  }
catch (  Exception e) {
    try {
      if (api != null)       pool.invalidateObject(serverConfig,api);
    }
 catch (    Exception e1) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e1);
      if (api != null)       api=null;
    }
    api=null;
    LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage(),e);
    throw new AbortException("String_Node_Str" + serverConfig.getHostName() + "String_Node_Str"+ serverConfig.getPort()+ "String_Node_Str"+ cmd.getCommandName()+ "String_Node_Str"+ e.getMessage());
  }
 finally {
    try {
      if (null != api && !runCommandWithInterim) {
        LOGGER.log(Level.FINEST,"String_Node_Str" + serverConfig.getName());
        pool.returnObject(serverConfig,api);
      }
    }
 catch (    Exception e) {
      LOGGER.log(Level.SEVERE,"String_Node_Str" + serverConfig.getName(),e);
    }
  }
  return res;
}