+ * Returns all volatile fields from the message.
+ *
+ * @return All volatile files
+ */
+ public Map<String, String> getVolatileFields() {
+ Map<String, String> volatileFields = new HashMap<String, String>();
+ for (Entry<String, String> field : getFields().entrySet()) {
+ if (field.getKey().startsWith("volatile.")) {
+ volatileFields.put(field.getKey(), field.getValue());
+ }
+ }
+ return Collections.unmodifiableMap(volatileFields);
+ }
+
+ /**