code: protected void readMigrations() {
          final List<MigrationResource> resources = findMigrationResource();
  
          // sort into version order before applying
          Collections.sort(resources);
  
          for (MigrationResource migrationResource : resources) {
              logger.debug("read {}", migrationResource);
              model.apply(migrationResource.read(), migrationResource.getVersion());
          }
  
          // remember the last version
          if (!resources.isEmpty()) {
              lastVersion = resources.get(resources.size() - 1).getVersion();
          }
      }
docs: <p>readMigrations.</p>