launchServices(context, identityProviderNode, verificationHandler, newControllers, pathAddress);
}
static void launchServices(OperationContext context, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers, PathAddress pathAddress) throws OperationFailedException {
String alias = pathAddress.getLastElement().getValue();
IdentityProviderService service = new IdentityProviderService(toIDPConfig(context, model, alias));
ServiceBuilder<IdentityProviderService> serviceBuilder = context.getServiceTarget().addService(IdentityProviderService.createServiceName(alias), service);
String federationAlias = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();
serviceBuilder.addDependency(FederationService.createServiceName(federationAlias), FederationService.class,
service.getFederationService());
IDPConfiguration configuration = service.getConfiguration();
if (!configuration.isExternal()) {
serviceBuilder.addDependency(SecurityDomainService.SERVICE_NAME.append(configuration.getSecurityDomain()));
}