LOGGER.info("Loading " + path + " - " + offset + ":" + length);
}
boolean success = false;
SeekableLineReader slr = blockLoader.attemptLoadBlock(path, offset, length, false, false);
if (slr == null) {
return null;
}
try {
InputStream is = slr.getInputStream();
r = loadResource(path, is);
r.parseHeaders();
success = true;
} finally {
if (!success) {
if (slr != null) {
slr.close();
}
}
}
return r;