public static ModelNode getResults ( ModelNode operationResult ) { if ( ! operationResult . hasDefined ( RESULT ) ) { return new ModelNode ( ) ; } return operationResult . get ( RESULT ) ; }
If the given node has results those results are returned in a ModelNode . Otherwise an empty node is returned .