pair.defaultProperties.load(in);
}
}
catch(Exception ex) {
LOG.warn("MessageResourceImpl.createPropertiesPair()", ex);
throw new FtpException("MessageResourceImpl.createPropertiesPair()", ex);
}
finally {
IoUtils.close(in);
}
// load custom resource
File resourceFile = null;
if(lang == null) {
resourceFile = new File(customMessageDirectory, "FtpStatus.gen");
}
else {
resourceFile = new File(customMessageDirectory, "FtpStatus_" + lang + ".gen");
}
in = null;
try {
if(resourceFile.exists()) {
in = new FileInputStream(resourceFile);
pair.customProperties.load(in);
}
}
catch(Exception ex) {
LOG.warn("MessageResourceImpl.createPropertiesPair()", ex);
throw new FtpException("MessageResourceImpl.createPropertiesPair()", ex);
}
finally {
IoUtils.close(in);
}