public SenseNet.Services.IdentityManagement.LookupIdentityResult LookupIdentity(string identityToken)
        {
            string username = string.Empty;

            try
            {
                username = CryptoApi.Decrypt(identityToken, "sensenet60", "SenseNetContentRepository");
            }
            catch //rethrow
            {
                throw new InvalidTokenException();
            }

            Debug.WriteLine("Token resolved to:" + username);
            string[] userParts = username.Split('\\');
            User     user      = null;

            try
            {
                user = User.Load(userParts[0], userParts[1]);
            }
            catch (Exception e) //rethrow
            {
                throw new SecurityException(e.Message, e);
            }

            if (user == null)
            {
                throw new InvalidParameterException(username);
            }

            return(new LookupIdentityResult()
            {
                Identity = new Identity(user),
            });
        }