PathAddress opAddr = PathAddress.pathAddress(operation.get(OP_ADDR));
TransformerRegistry transformerRegistry = extensionRegistry.getTransformerRegistry();
PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
Map<PathAddress, ModelVersion> subsystemVersions = Collections.<PathAddress, ModelVersion>emptyMap();
OperationTransformerRegistry registry = transformerRegistry.resolveHost(modelVersion, subsystemVersions);
TransformationTarget target = TransformationTargetImpl.create(extensionRegistry.getTransformerRegistry(), modelVersion,
subsystemVersions, MOCK_IGNORED_DOMAIN_RESOURCE_REGISTRY, TransformationTarget.TransformationTargetType.DOMAIN);
TransformationContext transformationContext = createTransformationContext(target);
OperationTransformer operationTransformer = registry.resolveOperationTransformer(address, operation.get(OP).asString()).getTransformer();
if (operationTransformer != null) {
return operationTransformer.transformOperation(transformationContext, address, operation);
}
return new OperationTransformer.TransformedOperation(operation, OperationResultTransformer.ORIGINAL_RESULT);
}