protected Map<String, String> buildReplacements() throws ConfigException { Map<String, String> replacements = new HashMap<>(); Properties properties = _service.getConfigProperties(); if ( properties != null ) { Enumeration e = properties.propertyNames(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); replacements.put(key, properties.getProperty(key)); } } return replacements; }
Properties properties = _service.getConfigProperties(); if ( properties != null ) { String translationApiKey = properties.getProperty(TRANSLATE_API_KEY);