code: protected List<MigrationResource> findMigrationResource() {
          final List<MigrationResource> resources = Lists.newArrayList();
          BeanDescriptor<ScriptInfo> beanDescriptor = server.getBeanDescriptor(ScriptInfo.class);
          Transaction transaction = server.createTransaction(TxIsolation.READ_COMMITED);
          try (Connection connection = transaction.getConnection()) {
              String tableName = beanDescriptor.getBaseTable();
              ResultSet rs = connection.getMetaData()
                      .getTables(null, null, "%", null);
              while (rs.next()) {
                  if (tableName.equalsIgnoreCase(rs.getString(3))) {
                      migrationTableExist = true;
                      break;
                  }
              }
              if (migrationTableExist) {
                  server.find(ScriptInfo.class)
                          .findEach(bean -> resources.add(new MigrationResource(bean)));
              }
              transaction.commit();
          } catch (Exception e) {
              transaction.rollback();
          } finally {
              transaction.end();
          }
          return resources;
      }
docs: <p>findMigrationResource.</p>
  
  @return a {@link java.util.List} object.