static HasId of(Document document) {
        return viewOf(document, HasId.class, HasIdView::new);
    }
Returns a wrapper of the specified document that implements the
{@link HasId} 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/HasId.java