protected static List<ContentType> createMatchingXmlList(ContentType... types){
  ArrayList<ContentType> matchingTypes=new ArrayList<ContentType>(types.length + XML_CONTENT_TYPES.size());
  for (  ContentType contentType : types) {
    matchingTypes.add(contentType);
  }
  matchingTypes.addAll(XML_CONTENT_TYPES);
  return Collections.unmodifiableList(matchingTypes);
}

protected static List < ContentType > createMatchingXmlList ( ContentType ... types ) { ArrayList < ContentType > matchingTypes = new ArrayList < ContentType > ( types . length + XML_CONTENT_TYPES . size ( ) ) ; for ( ContentType contentType : types ) { matchingTypes . add ( contentType ) ; } matchingTypes . addAll ( XML_CONTENT_TYPES ) ; return Collections . unmodifiableList ( matchingTypes ) ; }
creates a new matching contenttype set that contains all of the basic xml types plus an additional list of types .
