* @param client
* The client preferences to use.
* @return The best supported encoding for the given call.
*/
public Encoding getBestEncoding(ClientInfo client) {
Encoding bestEncoding = null;
Encoding currentEncoding = null;
Preference<Encoding> currentPref = null;
float bestScore = 0F;
for (final Iterator<Encoding> iter = EncodeRepresentation
.getSupportedEncodings().iterator(); iter.hasNext();) {