private String toString(Path<?> path) {
        return path.getMetadata().getElement().toString();
    }
Get the String representation of the last path element

@param path path
@return String representation
querydsl-core/src/main/java/com/querydsl/core/types/dsl/PathBuilder.java