public static byte getArchiveCode(String code) {
        byte result = 0;
        if (code.equals("1700TL")) {
            result = 0x63;
        }
        if (code.equals("2100TL")) {
            result = 0x63;
        }
        if (code.equals("3000TL")) {
            result = 0x71;
        }
        if (code.equals("3000TLHF")) {
            result = (byte) 0x83;
        }
        if (code.equals("4000TL")) {
            result  = 0x4e;
        }
        if (code.equals("5000TL")) {
            result   = 0x4e;
        }
        if (code.equals("7000")) {
            result    = 0x63;
        }
        if (code.equals("10000TL")) {
            result  = (byte) 0x80;
        }
        if (code.equals("XXXXTL")) {
            result   = 0x4e;
        }
        return result;        
    }