public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode model = context.readModel(PathAddress.EMPTY_ADDRESS);
PathAddress rootAddress = PathAddress.pathAddress(PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement());
final ModelNode result = context.getResult();
result.add(LoggingExtension.NewLoggingSubsystemAdd.createOperation(rootAddress.toModelNode()));
if (model.hasDefined(ROOT_LOGGER)) {
final ModelNode add = Util.getEmptyOperation(RootLoggerAdd.OPERATION_NAME, rootAddress.append(LoggingExtension.rootLoggerPath).toModelNode());
final ModelNode rootLogger = model.get(ROOT_LOGGER, ROOT_LOGGER_NAME);
copy(LEVEL, rootLogger, add);
copy(FILTER, rootLogger, add);