code: public Ticket get(final String ticketId, final String encodedTicketId) {
          val metadata = this.ticketCatalog.find(ticketId);
          if (metadata != null) {
              val keys = new HashMap<String, AttributeValue>();
              keys.put(ColumnNames.ID.getColumnName(), new AttributeValue(encodedTicketId));
              val request = new GetItemRequest().withKey(keys).withTableName(metadata.getProperties().getStorageName());
              LOGGER.debug("Submitting request [{}] to get ticket item [{}]", request, ticketId);
              val returnItem = amazonDynamoDBClient.getItem(request).getItem();
              if (returnItem != null) {
                  val ticket = deserializeTicket(returnItem);
                  LOGGER.debug("Located ticket [{}]", ticket);
                  if (ticket == null || ticket.isExpired()) {
                      LOGGER.warn("The expiration policy for ticket id [{}] has expired the ticket", ticketId);
                      return null;
                  }
                  return ticket;
              }
          } else {
              LOGGER.warn("No ticket definition could be found in the catalog to match [{}]", ticketId);
          }
          return null;
      }
docs: Get ticket.
  
  @param ticketId        the ticket id
  @param encodedTicketId the encoded ticket id
  @return the ticket