private static ModelNode createOperation ( final ModelNode operationToValidate ) { PathAddress pa = PathAddress . pathAddress ( operationToValidate . require ( OP_ADDR ) ) ; PathAddress validationAddress = pa . subAddress ( 0 , pa . size ( ) - 1 ) ; return Util . getEmptyOperation ( "validate-cache" , validationAddress . toModelNode ( ) ) ; }
Creates an operations that targets the valiadating handler .