}
}
context.removeResource(PathAddress.EMPTY_ADDRESS);
context.addStep(new OperationStepHandler() {
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
<BUG>final boolean wasActive = RaOperationUtil.deactivateIfActive(context, archiveOrModuleName);

ServiceName raServiceName = ServiceName.of(ConnectorServices.RA_SERVICE, archiveOrModuleName);
</BUG>
ServiceController<?> serviceController =  context.getServiceRegistry(false).getService(raServiceName);

}
final ModelNode compensating = Util.getEmptyOperation(ADD, opAddr);
if (model.hasDefined(RESOURCEADAPTERS_NAME)) {
for (ModelNode raNode : model.get(RESOURCEADAPTERS_NAME).asList()) {
ModelNode raCompensatingNode = raNode.clone();
compensating.get(RESOURCEADAPTERS_NAME).add(raCompensatingNode);
}
}
context.removeResource(PathAddress.EMPTY_ADDRESS);
context.addStep(new OperationStepHandler() {
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final boolean wasActive = RaOperationUtil.deactivateIfActive(context, name);
ServiceName raServiceName = ServiceName.of(ConnectorServices.RA_SERVICE, name);
ServiceController<?> serviceController =  context.getServiceRegistry(false).getService(raServiceName);
