@Override protected Collection<GeoServerRole> getRoles(HttpServletRequest request, String principal) throws IOException { if (J2eeAuthenticationBaseFilterConfig.J2EERoleSource.J2EE.equals(getRoleSource())) { return getRolesFromJ2EE(request, principal); } return super.getRoles(request, principal); }