With 5.0 you'd use either Configuration or ServiceRegistry+Metamodel for bootstrapping. Take a look at my fork of your gist