void () { try { final byte[] bytes = FileUtil.loadFileBytes(myFile); final DataInputStream dis = new DataInputStream(new UnsyncByteArrayInputStream(bytes)); final int size = dis.readInt(); for (int i = 0; i < size; i++) { final KeyWrapper<K> keyWrapper = new KeyWrapper<>(myKeyDescriptor, myKeyDescriptor.read(dis)); final V value = myValueExternalizer.read(dis); myMap.put(keyWrapper, value); } } catch (FileNotFoundException ignore) { } catch (IOException e) { LOG.error(e); } }