378379380381382383384385
{ throw new IllegalArgumentException("User is not a db user"); } // We return an immutable set to avoid modifications HibernateUserImpl ui = (HibernateUserImpl)user; return Collections.unmodifiableSet(ui.getRoles()); }