}
private Map<String, ByteBuffer> loadResources(ByteBuffer buffer) throws IOException {
final BootableHashMap<String, ByteBuffer> map = new BootableHashMap<String, ByteBuffer>();
final JarBuffer jbuf = new JarBuffer(buffer);
for (Map.Entry<String, ByteBuffer> entry : jbuf.entries().entrySet()) {
if (entry.getValue().limit() > 0) {
map.put(entry.getKey(), entry.getValue());
}
}
return map;