code: public boolean accepts(final String ct) {
          for (final Object element : accepts) {
              final String accept = (String) element;
              if (accept != null && accept.trim().equals("*/*")) {
                  return true;
              }
              final String entryType = "application/atom+xml";
              final boolean entry = entryType.equals(ct);
              if (entry && null == accept) {
                  return true;
              } else if (entry && "entry".equals(accept)) {
                  return true;
              } else if (entry && entryType.equals(accept)) {
                  return true;
              } else {
                  final String[] rules = accepts.toArray(new String[accepts.size()]);
                  for (final String rule2 : rules) {
                      String rule = rule2.trim();
                      if (rule.equals(ct)) {
                          return true;
                      }
                      final int slashstar = rule.indexOf("/*");
                      if (slashstar > 0) {
                          rule = rule.substring(0, slashstar + 1);
                          if (ct.startsWith(rule)) {
                              return true;
                          }
                      }
                  }
              }
          }
          return false;
      }
docs: Returns true if contentType is accepted by collection.