long[] offsetAndSize = (long[]) messageIndex.get(new Integer(i));
long[] offsetAndSize = (long[]) messageIndex.get(new Long(i));
    private String getMessage(int i) throws IOException {        long[] offsetAndSize = (long[]) messageIndex.get(new Integer(i));        String message = null;        if (offsetAndSize != null) {            msgFile.seek(offsetAndSize[0]);            byte[] data = new byte[(int) offsetAndSize[1]];            msgFile.read(data);            message = new String(data);        }        return message;    }