Buggy code:
@ SQLInitScript ( "sql//maintenence//create.tables" ) public abstract class JDBCStatDataProvider extends JDBCDataSource implements IStatDataProvider { public Connection getConnection ( ) { } public static final String SQL_SAVE_ENTITY = "sql//entity//saveEntity" ; public static final String SQL_SAVE_STAT = "sql//entity//saveStat" ; public static final String SQL_LOAD_ENTITY_DATA = "sql//entity//getEntityData" ; public static final String SQL_LOAD_DOMAINS = "sql//components//load//getDomains" ; public static final String SQL_LOAD_WORLDS = "sql//components//load//getWorlds" ; public static final String SQL_LOAD_CATEGORIES = "sql//components//load//getCategories" ; public static final String SQL_LOAD_STATISTICS = "sql//components//load//getStatistics" ; public static final String SQL_SAVE_DOMAIN = "sql//components//save//saveDomain" ; public static final String SQL_SAVE_WORLD = "sql//components//save//saveWorld" ; public static final String SQL_SAVE_CATEGORY = "sql//components//save//saveCategory" ; public static final String SQL_SAVE_STATISTIC = "sql//components//save//saveStatistic" ; public static final String SQL_SAVE_UUID = "sql//save//setUUID" ; public static final String SQL_METADATA_CATEGORY = "sql//maintenence//metadata//category" ; public static final String SQL_METADATA_STATISTIC = "sql//maintenence//metadata//statistic" ; public static final String SQL_METADATA_STATIC_STATS = "sql//maintenence//metadata//staticstats" ; public static final String SQL_METADATA_STATIC_FIXNULL = "sql//maintenence//metadata//fixnull" ; public static final String SQL_KEEP_ALIVE = "sql//maintenence//keepAlive" ; @ SQLScript ( JDBCStatDataProvider . SQL_LOAD_DOMAINS ) protected PreparedStatement loadDomainsList ; @ SQLScript ( JDBCStatDataProvider . SQL_LOAD_WORLDS ) protected PreparedStatement loadWorldsList ; @ SQLScript ( JDBCStatDataProvider . SQL_LOAD_CATEGORIES ) protected PreparedStatement loadCategoriesList ; @ SQLScript ( JDBCStatDataProvider . SQL_LOAD_STATISTICS ) protected PreparedStatement loadStatisticsList ; @ SQLScript ( value = JDBCStatDataProvider . SQL_SAVE_DOMAIN , flags = Statement . RETURN_GENERATED_KEYS ) protected PreparedStatement saveDomain ; @ SQLScript ( value = JDBCStatDataProvider . SQL_SAVE_WORLD , flags = Statement . RETURN_GENERATED_KEYS ) protected PreparedStatement saveWorld ; @ SQLScript ( value = JDBCStatDataProvider . SQL_SAVE_CATEGORY , flags = Statement . RETURN_GENERATED_KEYS ) protected PreparedStatement saveCategory ; @ SQLScript ( value = JDBCStatDataProvider . SQL_SAVE_STATISTIC , flags = Statement . RETURN_GENERATED_KEYS ) protected PreparedStatement saveStatistic ; @ SQLScript ( JDBCStatDataProvider . SQL_LOAD_ENTITY_DATA ) protected PreparedStatement loadEntityData ; @ SQLScript ( JDBCStatDataProvider . SQL_SAVE_ENTITY ) protected PreparedStatement saveEntity ; @ SQLScript ( JDBCStatDataProvider . SQL_SAVE_STAT ) protected PreparedStatement saveEntityData ; @ SQLScript ( JDBCStatDataProvider . SQL_KEEP_ALIVE ) protected PreparedStatement keepAlive ; protected PreparedStatement deleteEntity ; @ SQLScript ( JDBCStatDataProvider . SQL_SAVE_UUID ) protected PreparedStatement setUUID ; private final Map < String , DomainMeta > domainMetaMap = new HashMap < String , DomainMeta > ( ) ; private final Map < String , WorldMeta > worldMetaMap = new HashMap < String , WorldMeta > ( ) ; private final Map < String , CategoryMeta > categoryMetaMap = new HashMap < String , CategoryMeta > ( ) ; private final Map < String , StatisticMeta > statisticMetaMap = new HashMap < String , StatisticMeta > ( ) ; private HashMap < Integer , StatBlobRecord > writeCache = new HashMap < Integer , StatBlobRecord > ( ) ; protected DbPlatform platform ; protected DatabaseConfiguration config ; public JDBCStatDataProvider ( DbPlatform platform , String scriptSuffix , String driverClass , DatabaseConfiguration config ) throws ClassNotFoundException { } protected void initialise ( ) throws BeardStatRuntimeException { } public void cacheComponents ( ) { } @ Override public ProviderQueryResult [ ] queryDatabase ( ProviderQuery query ) { } @ Override public EntityStatBlob pullEntityBlob ( ProviderQuery query ) { } protected ProviderQueryResult getSingleEntity ( ProviderQuery query ) throws IllegalStateException { } @ Override public boolean hasEntityBlob ( ProviderQuery query ) { } @ Override public boolean deleteEntityBlob ( EntityStatBlob blob ) { } @ Override public void pushEntityBlob ( EntityStatBlob player ) { } private Runnable flush ; @ Override public void flushSync ( ) { } @ Override public void flush ( ) { } @ Override public DomainMeta getDomain ( String gameTag , boolean create ) { } @ Override public WorldMeta getWorld ( String gameTag , boolean create ) { } @ Override public CategoryMeta getCategory ( String gameTag , boolean create ) { } @ Override public StatisticMeta getStatistic ( String gameTag , boolean create ) { } private String sanitizeTag ( String gameTag ) { } public static final int MAX_UUID_REQUESTS_PER = 2 * 64 ; @ PostUpgrade @ DBVersion ( 6 ) public void upgradeWriteUUIDS ( ) throws Exception , SQLException { } public String readSQLFile ( String type , String filename ) { } public String byteArrayToHexString ( byte [ ] b ) { } public void setUUID ( String player , String uuid ) { } public void runExternalScript ( File file ) throws SQLException { } @ Override protected String getMigrationScriptPath ( int toVersion ) { } @ Override public int getDataSourceVersion ( ) { <START_BUG> return Integer . parseInt ( "${project.database.version}" ) ; <END_BUG> } No newline ; at end ; of file ; }

Fix:
return config . latestVersion ;