PEL: Save registry callout JSON for later

When finding an entry in the PEL message registry, save the callout JSON
section, if there is one, in the returned Entry object.  This also adds
a constructor argument that lets one choose to do this or not, because
it isn't needed when used in peltool.

That JSON will be parsed at a later point.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I757509ced952ce8f07f12c28ab203e5eedf4fd32
diff --git a/extensions/openpower-pels/registry.cpp b/extensions/openpower-pels/registry.cpp
index 3c4e016..8b7ac18 100644
--- a/extensions/openpower-pels/registry.cpp
+++ b/extensions/openpower-pels/registry.cpp
@@ -376,6 +376,19 @@
                 entry.doc.messageArgSources = doc["MessageArgSources"];
             }
 
+            // If there are callouts defined, save the JSON for later
+            if (_loadCallouts)
+            {
+                if (e->contains("Callouts"))
+                {
+                    entry.callouts = (*e)["Callouts"];
+                }
+                else if (e->contains("CalloutsUsingAD"))
+                {
+                    entry.callouts = (*e)["CalloutsUsingAD"];
+                }
+            }
+
             return entry;
         }
         catch (std::exception& e)