private Properties loadProperties(SiteKey siteKey) { Properties props = new Properties(); File file = new File(this.configDir, "site-" + siteKey.toInt() + ".properties"); if (file.exists()) { try { props.load(new FileInputStream(file)); } catch (Exception e) { // Do nothing } } return PropertiesUtil.interpolate(props); }
private SiteEntity getSite(SiteKey siteKey) { SiteEntity site = siteDao.findByKey(siteKey.toInt()); return site; }