+ /**
+ * Returns all field names and their values, ordered the same way
+ * {@link #getFieldNames()} returns the names of the fields.
+ *
+ * @return All field names and values
+ */
+ public Map<String, String> getFields() {
+ Map<String, String> fields = new LinkedHashMap<String, String>();
+ for (String field : getFieldNames()) {
+ fields.put(field, getField(field));
+ }
+ return fields;
+ }
+