throw failure;
}
// Initialize the transformers
final TransformationTarget target = TransformationTargetImpl.create(transformerRegistry, ModelVersion.create(major, minor, micro),
Collections.<PathAddress, ModelVersion>emptyMap(), hostInfo, TransformationTarget.TransformationTargetType.HOST);
final Transformers transformers = Transformers.Factory.create(target);
// Build the extensions list
final ModelNode extensions = new ModelNode();
final Resource transformed = transformers.transformRootResource(context, root);
final Collection<Resource.ResourceEntry> resources = transformed.getChildren(EXTENSION);
for(final Resource.ResourceEntry entry : resources) {
extensions.add(entry.getName());
}
if(! extensions.isDefined()) {