// try to get the file from the user current directory
if (FileUtil.isFileInUserCurrentDir(paymentTermsFile)) {
try {
paymentTerms.get().append(FileUtil.getFileContentAsString(paymentTermsFile));
} catch (IOException e) {
throw new FailedToProcessException(e);
}
} else if (FileUtil.isFileInUserHomeDir(paymentTermsFile)) { // try to get the file from the user home directory
try {
paymentTerms.get().append(FileUtil
.getFileContentAsString(new File(SystemUtil.USER_HOME_DIR, paymentTermsFile.getName())));
} catch (IOException e) {
throw new FailedToProcessException(e);
}
} else {
if (logger.isInfoEnabled()) {
logger.info("didn't find '" + paymentTermsFile.getName() +
"' file; will continue with no payment terms");