+
+ /**
+ * A convenience method that returns a map holding property values for the
+ * specified keys. A null entry in the map indicates a property that is either
+ * not set, or set with value null.
+ *
+ * @param key
+ * @return
+ */
+ public static Map<String, String> getProperties(String... key)
+ {
+ Map<String, String> map = new HashMap<>();
+ for (String k : key)
+ {
+ map.put(k, getProperty(k));
+ }
+ return map;
+ }
+