public static void validateLabel(final String label) throws IllegalArgumentException {
        if (null == label)
            throw Element.Exceptions.labelCanNotBeNull();
        if (label.isEmpty())
            throw Element.Exceptions.labelCanNotBeEmpty();
        if (Graph.Hidden.isHidden(label))
            throw Element.Exceptions.labelCanNotBeAHiddenKey(label);
    }
Determine whether the {@link Element} label can be legally set. This is typically used as a pre-condition check.

@param label the element label
@throws IllegalArgumentException whether the label is legal and if not, a clear reason exception is provided
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java