Turns out the SchemaExport can be called, there is SchemaManagementTool as a useful extension point already. Some changes to that are required still, see this ML discussion.