@Override
    public Void visit(Path<?> path, Void context) {
        final PathType pathType = path.getMetadata().getPathType();
        final Template template = templates.getTemplate(pathType);
        final Object element = path.getMetadata().getElement();
        List<Object> args;
        if (path.getMetadata().getParent() != null) {
            args = Arrays.asList(path.getMetadata().getParent(), element);
        } else {
            args = Collections.singletonList(element);
        }
        handleTemplate(template, args);
        return null;
    }
Generate a constant value under which to register a new constant in {@link #getConstantToLabel()}.

@param value the constant value or parameter to create a constant for
@return the generated label
querydsl-core/src/main/java/com/querydsl/core/support/SerializerBase.java