prop.load(new FileInputStream(file));
prop.setProperty("configurationDir", path);
config = new Configuration(prop);
final ConfigValidationResult configResult = config.validateConfiguration();
if (configResult.thereAreErrors()) {
// display errors here
System.out.println("Errors in configuration");
for (final Iterator iter = configResult.getErrors().iterator(); iter.hasNext();) {
System.out.println(" > " + iter.next());