code: public static ModelNode readResult(final ModelNode result) {
          return (result.hasDefined(RESULT) ? result.get(RESULT) : new ModelNode());
      }
docs: Reads the result of an operation and returns the result. If the operation does not have a {@link
  ClientConstants#RESULT} attribute, a new undefined {@link org.jboss.dmr.ModelNode} is returned.
  
  @param result the result of executing an operation
  
  @return the result of the operation or a new undefined model node