if (size != -1) {
final String content = new String(buffer, 0, size);
encoding = parseCharset(content);
}
} catch (final IOException e) {
throw new RobotCrawlAccessException("Could not load a content.", e);
}
try {
final EncodingHelper encodingHelper = SingletonS2Container
.getComponent(EncodingHelper.class);