public static Optional<List<ModelNode>> optionalList(ModelNode value) {
        return value.isDefined() ? Optional.of(value.asList()) : Optional.empty();
    }
public static Optional < List < ModelNode > > optionalList ( ModelNode value ) { return value . isDefined ( ) ? Optional . of ( value . asList ( ) ) : Optional . empty ( ) ; }
Returns the optional list value of the specified {@link ModelNode}.
@param value the model node
@return an optional value