// Get the most specific match for this variant:
ResourceReference rr = state.getResource();
try {
FramedResource resource = (FramedResource)rr.unsafeLock() ;
HTTPFrame itsframe =
(HTTPFrame) resource.unsafeGetFrame(httpFrameClass);
if (itsframe != null) {
MimeType vt;
vt = (MimeType) itsframe.unsafeGetValue(
ATTR_CONTENT_TYPE, null);
String fcharset = vt.getParameterValue("charset");