public class ScheduledThreadPoolRemove extends AbstractRemoveStepHandler implements DescriptionProvider {
static final ScheduledThreadPoolRemove INSTANCE = new ScheduledThreadPoolRemove();
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
<BUG>context.removeService(ThreadsServices.threadFactoryName(name));
</BUG>
}
<BUG>protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) {

}</BUG>
@Override

public class ScheduledThreadPoolRemove extends AbstractRemoveStepHandler implements DescriptionProvider {
static final ScheduledThreadPoolRemove INSTANCE = new ScheduledThreadPoolRemove();
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
context.removeService(ThreadsServices.executorName(name));
}
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
ScheduledThreadPoolAdd.INSTANCE.performRuntime(context, operation, model, null, null);
}
@Override
