+ return getString(id, null);
+ }
+
+ /**
+ * Return the value associated to the given id as a {@link String}.
+ * <p>
+ * If no value is associated, take the default one if any.
+ *
+ * @param id
+ * the id of the value to get
+ * @param def
+ * the default value when it is not present in the config file
+ *
+ * @return the associated value, or NULL if not found (not present in the
+ * resource file)
+ */
+ public String getString(E id, String def) {
+ String rep = getString(id.name(), null);
+ if (rep == null) {
+ MetaInfo<E> info = new MetaInfo<E>(type, this, id);
+ rep = info.getDefaultString();
+ }
+
+ if (rep == null) {
+ rep = def;
+ }
+
+ return rep;