if(!wbRequest.isFrameWrapperContext()) {
// in case this is an HTML page with FRAMEs, peek ahead an look:
// TODO: make ThreadLocal:
byte buffer[] = new byte[FRAMESET_SCAN_BUFFER_SIZE];
decodedResource.mark(FRAMESET_SCAN_BUFFER_SIZE);
int amtRead = decodedResource.read(buffer);
decodedResource.reset();
if(amtRead > 0) {
StringBuilder foo = new StringBuilder(new String(buffer,charSet));