public default V attach(final Function<Attachable<V>, V> method) throws IllegalStateException {
        return method.apply(this);
    }
Provide a way to attach an {@link Attachable} implementation to a host.  Note that the context of the host
is not defined by way of the attachment method itself that is supplied as an argument.  It is up to the
implementer to supply that context.

@param method a {@link Function} that takes an {@link Attachable} and returns the "re-attached" object
@return the return value of the {@code method}
@throws IllegalStateException if the {@link Attachable} is not a "graph" object (i.e. host or
                              attachable don't work together)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/Attachable.java