code: public static GatewaySummaryBean unmarshallGatewaySummary(Map<String, Object> map) {
          GatewaySummaryBean bean = new GatewaySummaryBean();
          bean.setId(asString(map.get("id")));
          bean.setName(asString(map.get("name")));
          if (map.containsKey("description")) {
              bean.setDescription(asString(map.get("description")));
          }
          bean.setType(asEnum(map.get("type"), GatewayType.class));
          postMarshall(bean);
          return bean;
      }
docs: Unmarshals the given map source into a bean.
  @param map the search hit map
  @return the gateway summary