class RemascConfigFactory {

    public RemascConfig createRemascConfig(String config) {
        RemascConfig remascConfig;

        try (InputStream is = RemascConfigFactory.class.getClassLoader().getResourceAsStream(this.configPath)){
            JsonNode node = mapper.readTree(is);
            remascConfig = mapper.treeToValue(node.get(config), RemascConfig.class);
        } catch (Exception ex) {
            logger.error("Error reading REMASC configuration[{}]: {}", config, ex);
            throw new RemascException("Error reading REMASC configuration[" + config +"]: ", ex);
        }

        return remascConfig;
    }

    public  RemascConfigFactory(String remascConfigFile);

}