@Override
public void initializeFromConfig(SecurityNamedServiceConfig config) throws IOException {
super.initializeFromConfig(config);
PreAuthenticatedUserNameFilterConfig authConfig =
(PreAuthenticatedUserNameFilterConfig) config;
roleSource=authConfig.getRoleSource();
rolesHeaderAttribute=authConfig.getRolesHeaderAttribute();
userGroupServiceName=authConfig.getUserGroupServiceName();
roleConverterName=authConfig.getRoleConverterName();
roleServiceName=authConfig.getRoleServiceName();
// TODO, Justin, is this ok ?
if (PreAuthenticatedUserNameRoleSource.Header.equals(getRoleSource())) {
String converterName = authConfig.getRoleConverterName();
if (converterName==null || converterName.length()==0)
setConverter(GeoServerExtensions.bean(GeoServerRoleConverter.class));
else
setConverter((GeoServerRoleConverter)
GeoServerExtensions.bean(converterName));