static HasOrderType of(Document document) {
        return viewOf(document, HasOrderType.class, HasOrderTypeView::new);
    }
Returns a wrapper of the specified document that implements the 
{@link HasOrderType} trait. If the specified document already implements 
the trait, it is returned unwrapped.

@param document  the document to wrap
@return          the wrapper
runtime-parent/runtime-config/src/main/java/com/speedment/runtime/config/trait/HasOrderType.java