/** * Returns a store implementation for a given table name. Returns a store type * for the adapter matching the database name, or if that does not exist, * the default adapter. * @param tableName * @return The store for the specified table name */ public Store createStore(String tableName) { try { return storeProviders.get(AdapterType.valueOf(databaseName(tableName).toUpperCase())).get(); } catch (IllegalArgumentException e) { return storeProviders.get(configuration.getDefaultAdapter()).get(); } }