@Override
public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getUndeployDeploymentOperation(locale);
}
public void execute(OperationContext context, ModelNode operation) {
<BUG>ModelNode model = context.readModelForUpdate(PathAddress.EMPTY_ADDRESS);
</BUG>
final String deploymentUnitName = model.require(RUNTIME_NAME).asString();
model.get(ENABLED).set(false);
DeploymentHandlerUtil.undeploy(context, deploymentUnitName);

@Override
public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getUndeployDeploymentOperation(locale);
}
public void execute(OperationContext context, ModelNode operation) {
ModelNode model = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS).getModel();
final String deploymentUnitName = model.require(RUNTIME_NAME).asString();
model.get(ENABLED).set(false);
DeploymentHandlerUtil.undeploy(context, deploymentUnitName);
