System.err.println("fetching integer when should be long"); new Exception().printStackTrace();
    public static long getLong(Object[] items, int index) {        if (items == null || index >= items.length) {            return -1;        }        if (items[index] instanceof Long) {            return ((Long) items[index]).longValue();        } else if (items[index] instanceof Integer) {            System.err.println("fetching integer when should be long");            new Exception().printStackTrace();                        return ((Integer) items[index]).intValue();        }        return -1;    }