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();
        }
    }
protected void readMigrations ( ) { final List < MigrationResource > resources = findMigrationResource ( ) ; Collections . sort ( resources ) ; for ( MigrationResource migrationResource : resources ) { logger . debug ( "read {}" , migrationResource ) ; model . apply ( migrationResource . read ( ) , migrationResource . getVersion ( ) ) ; } if ( ! resources . isEmpty ( ) ) { lastVersion = resources . get ( resources . size ( ) - 1 ) . getVersion ( ) ; } }
<p>readMigrations.</p>