Program: 41931
Project: 41931
Buggy source:
private void writePlotToStorage(final Plot plot){
  deletePlotFromStorage(plot);
  plugin.getServerBridge().runTaskAsynchronously(new Runnable(){
    @Override public void run(){
      try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str")){
        ps.setLong(1,plot.getInternalID());
        ps.setInt(2,plot.getId().getX());
        ps.setInt(3,plot.getId().getZ());
        ps.setString(4,plot.getWorld().getName().toLowerCase());
        ps.setString(5,plot.getOwnerId().toString());
        ps.setString(6,plot.getOwner());
        ps.setString(7,plot.getBiome());
        ps.setBoolean(8,plot.isFinished());
        ps.setString(9,plot.getFinishedDate());
        ps.setBoolean(10,plot.isForSale());
        ps.setDouble(11,plot.getPrice());
        ps.setBoolean(12,plot.isProtected());
        ps.setDate(13,plot.getExpiredDate());
        ps.setInt(14,plot.getTopX());
        ps.setInt(15,plot.getTopZ());
        ps.setInt(16,plot.getBottomX());
        ps.setInt(17,plot.getBottomZ());
        ps.setInt(18,plot.getLikes());
        ps.setString(19,plot.getCreatedDate());
        ps.executeUpdate();
        getConnection().commit();
      }
 catch (      SQLException e) {
        plugin.getLogger().severe("String_Node_Str");
        plugin.getLogger().severe(e.getMessage());
        plugin.getLogger().severe("String_Node_Str" + e.getMessage());
        plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
        plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
      }
      for (      String denied : plot.getDenied()) {
        try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str")){
          ps.setLong(1,plot.getInternalID());
          ps.setString(2,denied);
          ps.execute();
          getConnection().commit();
        }
 catch (        SQLException e) {
          plugin.getLogger().severe("String_Node_Str" + plot.getInternalID());
          plugin.getLogger().severe("String_Node_Str" + e.getMessage());
          plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
          plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
          e.printStackTrace();
        }
      }
      for (      Map.Entry<String,Plot.AccessLevel> member : plot.getMembers().entrySet()) {
        try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str")){
          ps.setLong(1,plot.getInternalID());
          ps.setString(2,member.getKey());
          ps.setInt(3,member.getValue().getLevel());
          ps.execute();
          getConnection().commit();
        }
 catch (        SQLException e) {
          plugin.getLogger().severe("String_Node_Str" + plot.getInternalID());
          plugin.getLogger().severe("String_Node_Str" + e.getMessage());
          plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
          plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
          e.printStackTrace();
        }
      }
      for (      UUID player : plot.getLikers()) {
        try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str")){
          ps.setLong(1,plot.getInternalID());
          ps.setString(2,player.toString());
          ps.execute();
          getConnection().commit();
        }
 catch (        SQLException e) {
          plugin.getLogger().severe("String_Node_Str" + plot.getInternalID());
          plugin.getLogger().severe("String_Node_Str" + e.getMessage());
          plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
          plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
          e.printStackTrace();
        }
      }
      for (      Map.Entry<String,Map<String,String>> metadata : plot.getAllPlotProperties().entrySet()) {
        for (        Map.Entry<String,String> stringStringEntry : metadata.getValue().entrySet()) {
          try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str" + "String_Node_Str")){
            ps.setLong(1,plot.getInternalID());
            ps.setString(2,metadata.getKey());
            ps.setString(3,stringStringEntry.getKey());
            ps.setString(4,stringStringEntry.getValue());
          }
 catch (          SQLException e) {
            plugin.getLogger().severe("String_Node_Str" + e.getMessage());
            plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
            plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
            e.printStackTrace();
          }
        }
      }
    }
  }
);
}

Fixed version (ground truth):
private void writePlotToStorage(final Plot plot){
  deletePlotFromStorage(plot);
  try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str")){
    ps.setLong(1,plot.getInternalID());
    ps.setInt(2,plot.getId().getX());
    ps.setInt(3,plot.getId().getZ());
    ps.setString(4,plot.getWorld().getName().toLowerCase());
    ps.setString(5,plot.getOwnerId().toString());
    ps.setString(6,plot.getOwner());
    ps.setString(7,plot.getBiome());
    ps.setBoolean(8,plot.isFinished());
    ps.setString(9,plot.getFinishedDate());
    ps.setBoolean(10,plot.isForSale());
    ps.setDouble(11,plot.getPrice());
    ps.setBoolean(12,plot.isProtected());
    ps.setDate(13,plot.getExpiredDate());
    ps.setInt(14,plot.getTopX());
    ps.setInt(15,plot.getTopZ());
    ps.setInt(16,plot.getBottomX());
    ps.setInt(17,plot.getBottomZ());
    ps.setInt(18,plot.getLikes());
    ps.setString(19,plot.getCreatedDate());
    ps.executeUpdate();
    getConnection().commit();
  }
 catch (  SQLException e) {
    plugin.getLogger().severe("String_Node_Str");
    plugin.getLogger().severe(e.getMessage());
    plugin.getLogger().severe("String_Node_Str" + e.getMessage());
    plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
    plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
  }
  for (  String denied : plot.getDenied()) {
    try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str")){
      ps.setLong(1,plot.getInternalID());
      ps.setString(2,denied);
      ps.execute();
      getConnection().commit();
    }
 catch (    SQLException e) {
      plugin.getLogger().severe("String_Node_Str" + plot.getInternalID());
      plugin.getLogger().severe("String_Node_Str" + e.getMessage());
      plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
      plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
      e.printStackTrace();
    }
  }
  for (  Map.Entry<String,Plot.AccessLevel> member : plot.getMembers().entrySet()) {
    try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str")){
      ps.setLong(1,plot.getInternalID());
      ps.setString(2,member.getKey());
      ps.setInt(3,member.getValue().getLevel());
      ps.execute();
      getConnection().commit();
    }
 catch (    SQLException e) {
      plugin.getLogger().severe("String_Node_Str" + plot.getInternalID());
      plugin.getLogger().severe("String_Node_Str" + e.getMessage());
      plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
      plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
      e.printStackTrace();
    }
  }
  for (  UUID player : plot.getLikers()) {
    try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str")){
      ps.setLong(1,plot.getInternalID());
      ps.setString(2,player.toString());
      ps.execute();
      getConnection().commit();
    }
 catch (    SQLException e) {
      plugin.getLogger().severe("String_Node_Str" + plot.getInternalID());
      plugin.getLogger().severe("String_Node_Str" + e.getMessage());
      plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
      plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
      e.printStackTrace();
    }
  }
  for (  Map.Entry<String,Map<String,String>> metadata : plot.getAllPlotProperties().entrySet()) {
    for (    Map.Entry<String,String> stringStringEntry : metadata.getValue().entrySet()) {
      try (PreparedStatement ps=getConnection().prepareStatement("String_Node_Str" + "String_Node_Str")){
        ps.setLong(1,plot.getInternalID());
        ps.setString(2,metadata.getKey());
        ps.setString(3,stringStringEntry.getKey());
        ps.setString(4,stringStringEntry.getValue());
      }
 catch (      SQLException e) {
        plugin.getLogger().severe("String_Node_Str" + e.getMessage());
        plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
        plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
        e.printStackTrace();
      }
    }
  }
}