final String acceptedMediaType = query
.getFirstValue(mediaTypeParameter);
// Updates the client preferences
final ClientInfo clientInfo = request.getClientInfo();
Metadata metadata = getMetadata(acceptedCharSet);
if (metadata instanceof CharacterSet) {
updateMetadata(clientInfo, metadata);
query.removeFirst(charSetParameter);
queryModified = true;
}