code: private static void cacheOnStart()
      {
          try {
              boolean closeContext = false;
              if (!Context.isThreadActive()) {
                  Context.begin();
                  closeContext = true;
              }
              Context.getThreadContext();
              final Connection con = Context.getConnection();
              final PreparedStatement stmtLang = con.prepareStatement(DBProperties.SQLLANG);
              final ResultSet rsLang = stmtLang.executeQuery();
              final Set<String> languages = new HashSet<>();
              while (rsLang.next()) {
                  languages.add(rsLang.getString(1).trim());
              }
              rsLang.close();
              stmtLang.close();
              final Cache<String, String> cache = InfinispanCache.get().<String, String>getCache(
                              DBProperties.CACHENAME);
              final PreparedStatement stmt = con.prepareStatement(DBProperties.SQLSELECTONSTART);
              final ResultSet resultset = stmt.executeQuery();
              while (resultset.next()) {
                  final String propKey = resultset.getString(1).trim();
                  final String defaultValue = resultset.getString(2);
                  if (defaultValue != null) {
                      final String value = defaultValue.trim();
                      for (final String lang : languages) {
                          final String cachKey = lang + ":" + propKey;
                          if (!cache.containsKey(cachKey)) {
                              cache.put(cachKey, value);
                          }
                      }
                  }
                  final String value = resultset.getString(3);
                  final String lang = resultset.getString(4);
                  if (value != null) {
                      final String cachKey = lang.trim() + ":" + propKey;
                      cache.put(cachKey, value.trim());
                  }
              }
              resultset.close();
              stmt.close();
              con.commit();
              con.close();
              if (closeContext) {
                  Context.rollback();
              }
          } catch (final EFapsException e) {
              DBProperties.LOG.error("initialiseCache()", e);
          } catch (final SQLException e) {
              DBProperties.LOG.error("initialiseCache()", e);
          }
      }
docs: Load the properties that must be cached on start.