public Models.TokenHandle Find(string subject, Models.Client client, Models.Application application, IEnumerable<Scope> scopes, TokenHandleType type)
        {
            var handles = db.TokenHandles.Where(h => h.Subject == subject &&
                                                             h.Client.ClientId == client.ClientId &&
                                                             h.Application.ID == application.ID &&
                                                             h.Type == type).ToList();

            foreach (var handle in handles)
            {
                if (handle.Scopes.ScopeEquals(scopes))
                {
                    return handle;
                }
            }

            return null;
        }
 public TokenHandle Find(string subject, Client client, Application application, System.Collections.Generic.IEnumerable<Scope> scopes, TokenHandleType type)
 {
     throw new System.NotImplementedException();
 }