@@ -0,0 +1,1023 @@
+/*%0A * Copyright 2016 Datalogics Inc.%0A */%0A%0Apackage com.datalogics.pdf.hsm.samples.util;%0A%0Aimport org.apache.commons.configuration2.Configuration;%0Aimport org.apache.commons.configuration2.builder.fluent.Configurations;%0Aimport org.apache.commons.configuration2.ex.ConfigurationException;%0A%0Aimport java.io.File;%0A%0A/**%0A * Helper class to provide Apache Configuration objects to clients.%0A */%0Apublic final class ConfigurationUtils %7B%0A    /**%0A     * This is a utility class, and won't be instantiated.%0A     */%0A    private ConfigurationUtils() %7B%7D%0A%0A    /**%0A     * Get a configuration object.%0A     *%0A     * @param configurationFile name of configuration file to load%0A     * @return a Configuration object%0A     * @throws ConfigurationException if configuration file could not be found%0A     */%0A    public static Configuration getConfiguration(final String configurationFile) throws ConfigurationException %7B%0A        final Configurations configs = new Configurations();%0A        return configs.properties(new File(configurationFile));%0A    %7D%0A%7D%0A

Add ConfigurationUtils helper class