Program: 129079
Project: 129079
Buggy source:
@SuppressWarnings("String_Node_Str") public static IMetadataTable getTableByName(ConnectionItem item,String name){
  if (item == null || name == null) {
    return null;
  }
  final Connection connection=item.getConnection();
  if (connection != null) {
    final EList tables=MetadataToolHelper.getMetadataTableFromConnection(connection);
    if (tables != null && tables.size() > 0) {
      Object tableObject=tables.get(0);
      if (tableObject instanceof MetadataTable) {
        for (        MetadataTable table : (List<MetadataTable>)tables) {
          Object object=table.getProperties().get("String_Node_Str");
          if (object == null || (object != null && !object.equals(Boolean.TRUE.toString()))) {
            if (table.getLabel().equals(name)) {
              if (GlobalServiceRegister.getDefault().isServiceRegistered(IMetadataManagmentService.class)) {
                IMetadataManagmentService mmService=(IMetadataManagmentService)GlobalServiceRegister.getDefault().getService(IMetadataManagmentService.class);
                return mmService.convertMetadataTable(table);
              }
            }
          }
        }
      }
 else       if (tableObject instanceof EObjectContainmentEList) {
        EObjectContainmentEList eObjectContainmentEList=(EObjectContainmentEList)tableObject;
        for (        MetadataTable table : (List<MetadataTable>)eObjectContainmentEList) {
          Object object=table.getProperties().get("String_Node_Str");
          if (object == null || (object != null && !object.equals(Boolean.TRUE.toString()))) {
            if (table.getLabel().equals(name)) {
              if (GlobalServiceRegister.getDefault().isServiceRegistered(IMetadataManagmentService.class)) {
                IMetadataManagmentService mmService=(IMetadataManagmentService)GlobalServiceRegister.getDefault().getService(IMetadataManagmentService.class);
                return mmService.convertMetadataTable(table);
              }
            }
          }
        }
      }
    }
  }
  return null;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static IMetadataTable getTableByName(ConnectionItem item,String name){
  if (item == null || name == null) {
    return null;
  }
  final Connection connection=item.getConnection();
  if (connection != null) {
    final EList tables=MetadataToolHelper.getMetadataTableFromConnection(connection);
    if (tables != null && tables.size() > 0) {
      Object tableObject=tables.get(0);
      if (tableObject instanceof MetadataTable) {
        for (        MetadataTable table : (List<MetadataTable>)tables) {
          if (table.getLabel().equals(name)) {
            if (GlobalServiceRegister.getDefault().isServiceRegistered(IMetadataManagmentService.class)) {
              IMetadataManagmentService mmService=(IMetadataManagmentService)GlobalServiceRegister.getDefault().getService(IMetadataManagmentService.class);
              return mmService.convertMetadataTable(table);
            }
          }
        }
      }
 else       if (tableObject instanceof EObjectContainmentEList) {
        EObjectContainmentEList eObjectContainmentEList=(EObjectContainmentEList)tableObject;
        for (        MetadataTable table : (List<MetadataTable>)eObjectContainmentEList) {
          if (table.getLabel().equals(name)) {
            if (GlobalServiceRegister.getDefault().isServiceRegistered(IMetadataManagmentService.class)) {
              IMetadataManagmentService mmService=(IMetadataManagmentService)GlobalServiceRegister.getDefault().getService(IMetadataManagmentService.class);
              return mmService.convertMetadataTable(table);
            }
          }
        }
      }
    }
  }
  return null;
}