code: public boolean isMap() {
          if (type instanceof Message) {
              Message message = (Message) type;
              return message.isMapEntry();
          }
          return false;
      }
docs: Returns true if this message is generated by parser as a
  holder for a map entries.