getToken()
Return the lock token if the Session that optained the lock
is the lock token holder, null otherwise.
NOTE: currently the token generated by the underlying JCR repository
is not checked for compliance with RFC 2518 ("OpaqueLockToken-URI = "opaquelocktoken:"
UUID [Extension] ; The UUID production is the string representation of a
UUID, as defined in [ISO-11578].

getToken

Return the lock token if the Session that optained the lock
is the lock token holder, null otherwise.
NOTE: currently the token generated by the underlying JCR repository
is not checked for compliance with RFC 2518 ("OpaqueLockToken-URI = "opaquelocktoken:"
UUID [Extension] ; The UUID production is the string representation of a
UUID, as defined in [ISO-11578]. Note that white space (LWS) is not allowed
between elements of this production.").

In case of session-scoped JCR 2.0 locks, the token is never exposed even
if the current session is lock holder. In order to cope with DAV specific
requirements and the fulfill the requirement stated above, the node's
identifier is subsequently exposed as DAV-token.