code: protected List<String> lockTokens(String lockTokenHeader, String ifHeader)
     {
        ArrayList<String> lockTokens = new ArrayList<String>();
  
        if (lockTokenHeader != null)
        {
           if (lockTokenHeader.startsWith("<"))
           {
              lockTokenHeader = lockTokenHeader.substring(1, lockTokenHeader.length() - 1);
           }
  
           if (lockTokenHeader.contains(WebDavConst.Lock.OPAQUE_LOCK_TOKEN))
           {
              lockTokenHeader = lockTokenHeader.split(":")[1];
           }
  
           lockTokens.add(lockTokenHeader);
        }
  
        if (ifHeader != null)
        {
           String headerLockToken = ifHeader.substring(ifHeader.indexOf("("));
           headerLockToken = headerLockToken.substring(2, headerLockToken.length() - 2);
           if (headerLockToken.contains(WebDavConst.Lock.OPAQUE_LOCK_TOKEN))
           {
              headerLockToken = headerLockToken.split(":")[1];
           }
           lockTokens.add(headerLockToken);
        }
  
        return lockTokens;
     }
docs: Creates the list of Lock tokens from Lock-Token and If headers.
  
  @param lockTokenHeader Lock-Token HTTP header
  @param ifHeader If HTTP header
  @return the list of lock tokens