private ConfigService configService;
private Authenticator authenticator;
public Authenticator getAuthenticator() {
if (authenticator == null) {
ConfigurationConfig cc = configService.getConfig(ConfigurationConfig.class);
String authId = cc.getConfiguration().getString("authenticator", null);
if (authId != null) {
authenticator = (Authenticator) applicationContext.getBean(authId);
} else {
authenticator = new NoActionAuthenticator();
}