for (int i = 0 ; i < states.size() ; i++) {
VariantState state = (VariantState) states.elementAt(i) ;
state.setContentEncodingQuality(1.0) ;
}
} else {
HttpAcceptEncoding encodings[] = request.getAcceptEncoding() ;
for (int i = 0 ; i < states.size() ; i++) {
VariantState state = (VariantState) states.elementAt(i) ;
ResourceReference rr = state.getResource();
try {
FramedResource resource = (FramedResource)rr.unsafeLock() ;