if (database == null) {
throw new IllegalStateException("Must set JdbcDatabase");
}
// Locate our SQL DatabaseResourceBundle.
DatabaseResourceBundleManager mgr = new DatabaseResourceBundleManager();
resourceBundle = mgr.getResourceBundle(RESOURCE_BUNDLE_NAME,
database.getResourceBundleExtension(), classLoader);
if (resourceBundle == null) {
// TODO: PersistentStore interface methods should be able to throw PersistentStoreExceptions.
throw new RuntimeException("Failed to load SQL ResourceBundle "
+ RESOURCE_BUNDLE_NAME);