protected ManagementHost initializeHostAndServices(String[] args) throws Throwable {
log(Level.INFO, "Initializing ...");
initialize(args);
log(Level.INFO, "Registering service interceptors ...");
registerOperationInterceptors();
log(Level.INFO, "Starting ...");
start();
log(Level.INFO, "Setting authorization context ...");
setAuthorizationContext(getSystemAuthorizationContext());
log(Level.INFO, "**** Management host starting ... ****");
startFabricServices();
startManagementServices();
startClosureServices(this, startMockHostAdapterInstance);
startSwaggerService();
startCustomSwaggerService();
log(Level.INFO, "**** Management host started. ****");
log(Level.INFO, "**** Migration service starting... ****");
super.startFactory(new LegacyMigrationTaskService());
super.startFactory(new MigrationTaskService());
setAuthorizationContext(null);
return this;
}