charsets = getAcceptCharset(acceptCharset); try { result = getAcceptedType(AcceptType.create(acceptHeaderValue), supportedContentTypes, charsets); } catch (final IllegalArgumentException e) { List<AcceptType> types = AcceptType.create(acceptHeaderValue); throw new ContentNegotiatorException( "The combination of type and subtype " + types.get(0) +
charsets = getAcceptCharset(acceptCharset); try { result = getAcceptedType(AcceptType.create(acceptHeaderValue), supportedContentTypes, charsets); } catch (final IllegalArgumentException e) { List<AcceptType> types = AcceptType.create(acceptHeaderValue); throw new ContentNegotiatorException( "The combination of type and subtype " + types.get(0) +