public static HashMap<String,String> convertStringToHashMapFormat(String data)
    {
        try
        {
            HashMap<String,String> listData = new HashMap<>();
            String[] tmp = data.split(";");

            for(String s : tmp)
            {
                String[] t = s.split("~");
                listData.put(t[0], t[1]);
            }
            return listData;
        }
        catch(Exception ex)
        {
            return new HashMap<>();
        }
    }