}
}
@Override
public CouchAuthenticationContext getRolesFromAuthentication(Cookie[] cookies) throws Exception {
CouchContextCookie contextCookie = new CouchContextCookie();
for(Cookie cookie : cookies){
contextCookie.setCookie(cookie.getName(), cookie.getValue());
}
CouchFactory factory = new CouchFactory();
CouchDb couchDb = factory.getDb(contextCookie, userDb);