context.addStep(new OperationStepHandler() {
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
final ServiceController<?> controller = context.getServiceRegistry(false).getService(DeploymentScannerService.getServiceName(name));
DeploymentScanner scanner = null;
if (controller == null) {
throw new OperationFailedException(new ModelNode().set("scanner not configured"));
} else {
scanner = (DeploymentScanner) controller.getValue();
updateScanner(scanner, newValue);