public SecurityChannelInterceptor(UserService userService) {
this.userService = userService;
}
public void loadConfiguration(String filename) {
YamlMapFactoryBean factory = new YamlMapFactoryBean();
factory.setResources(new ClassPathResource[]{new ClassPathResource(filename)});
this.securityDefinitions = factory.getObject();
}