}
try {
Resource resource = engine.getResource(file);
if (properties.getLastModified() < resource.getLastModified()) {
String encoding = (StringUtils.isEmpty(messageEncoding) ? "UTF-8" : messageEncoding);
properties.load(resource.openStream(), encoding, resource.getLastModified());
}
} catch (IOException e) {
if (logger != null && logger.isErrorEnabled()) {
logger.error("Failed to load httl message file " + file + " with locale " + locale + ", cause: " + e.getMessage(), e);
}