docs: public Integer getRegistryID(BaseMessage internalMessageReply)
      {
          Integer intRegistryID = null;
          Object objRegistryID = null;
          if (internalMessageReply.getMessageHeader() instanceof TrxMessageHeader)    // Always
              objRegistryID = ((TrxMessageHeader)internalMessageReply.getMessageHeader()).getMessageHeaderMap().get(TrxMessageHeader.REGISTRY_ID);
          if (objRegistryID == null)
              objRegistryID = internalMessageReply.get(TrxMessageHeader.REGISTRY_ID);
          if (objRegistryID instanceof Integer)
              intRegistryID = (Integer)objRegistryID;
          else if (objRegistryID instanceof String)
          {
              try {
                  intRegistryID = new Integer(Integer.parseInt((String)objRegistryID));
              } catch (NumberFormatException ex)  {
                  intRegistryID = null;
              }
          }
          return intRegistryID;
      }