Properties props = new Properties();
is = new FileInputStream(propFile);
props.load(is);
module.setProperties(props);
} catch (Exception exc) {
new MessageProvider().error(logger,
"module.propfile",
propFile.getAbsolutePath());
new StackTracePrinter().print(exc);
}finally{
IOUtils.close(is);