public Configuration build() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new LogbackModule());
mapper.setPropertyNamingStrategy(new AnnotationSensitivePropertyNamingStrategy());
SubtypeResolver subtypeResolver = new StdSubtypeResolver();
subtypeResolver.registerSubtypes
(
ConsoleAppenderFactory.class,
FileAppenderFactory.class,