relativeTo = relativeToNode.asString();
}
String file = KeyStoreProviderResourceDefinition.FILE.resolveModelAttribute(context, model).asString();
KeyStoreProviderService service = new KeyStoreProviderService(toKeyProviderType(context, model), file, relativeTo);
ServiceBuilder<KeyStoreProviderService> serviceBuilder = context.getServiceTarget().addService(KeyStoreProviderService
.createServiceName(federationAlias), service);
serviceBuilder.addDependency(FederationService.createServiceName(federationAlias), FederationService.class,
service.getFederationService());
serviceBuilder.addDependency(PathManagerService.SERVICE_NAME, PathManager.class, service.getPathManager());
if (verificationHandler != null) {
serviceBuilder.addListener(verificationHandler);
}