protected void updateModel ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { // verify that the resource exist before removing it context . readResource ( PathAddress . EMPTY_ADDRESS , false ) ; Resource resource = context . removeResource ( PathAddress . EMPTY_ADDRESS ) ; recordCapabilitiesAndRequirements ( context , operation , resource ) ; }
Performs the update to the persistent configuration model . This default implementation simply removes the targeted resource .