public ModelNode createNewVaultRequest ( String className ) { String dmrTemplate = "" // + "{" // + "\"code\" => \"%s\"" + "}" ; String dmr = String . format ( dmrTemplate , className ) ; Address addr = Address . root ( ) . add ( CORE_SERVICE , VAULT ) ; final ModelNode request = ModelNode . fromString ( dmr ) ; request . get ( OPERATION ) . set ( ADD ) ; request . get ( ADDRESS ) . set ( addr . getAddressNode ( ) ) ; return request ; }
Returns a ModelNode that can be used to create the vault . Callers are free to tweak the queue request that is returned if they so choose before asking the client to execute the request .