Yes, so apparently this was indeed in SMW. See the MwDatabaseSQLStoreIntegrationTest. It has a PageCreator class below itself. Probably want to use that rather then duplicating this all over.