mapper.setSubtypeResolver(subtypeResolver);
ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();
ConfigurationFactoryFactory<Configuration> factoryFactory = new DefaultConfigurationFactoryFactory<Configuration>();
ConfigurationFactory<Configuration> configurationFactory = factoryFactory.create(Configuration.class, validatorFactory.getValidator(), mapper, "curator");
ConfigurationSourceProvider provider = new ConfigurationSourceProvider()
{
@Override
public InputStream open(String path) throws IOException
{
return new ByteArrayInputStream(configurationSource.getBytes(Charset.defaultCharset()));