code: public List<AmqpTableEntry> getEntries(String key) {
          if ((key == null) || (tableEntryArray == null)) {
              return null;
          }
          
          List<AmqpTableEntry> entries = new ArrayList<AmqpTableEntry>();
          for (AmqpTableEntry entry : tableEntryArray) {
              if (entry.key.equals(key)) {
                  entries.add(entry);
              }
          }
          return entries;
      }
docs: Returns a list of AmqpTableEntry objects that matches the specified key.
  If a null key is passed in, then a null is returned. Also, if the internal
  structure is null, then a null is returned.
  
  @param key    name of the entry
  @return List<AmqpTableEntry> object with matching key