code: protected void updateModel(final ModelNode operation, final Resource resource) throws  OperationFailedException {
          updateModel(operation, resource.getModel());
      }
docs: Update the given resource in the persistent configuration model based on the values in the given operation.
  
  @param operation the operation
  @param resource the resource that corresponds to the address of {@code operation}
  
  @throws OperationFailedException if {@code operation} is invalid or populating the model otherwise fails