static String toHex8String(int pValue)
{

    String s = Integer.toString(pValue, 16);

    //force length to be eight characters

    if (s.length() == 0) {return "00000000" + s;}
    else
    if (s.length() == 1) {return "0000000" + s;}
    else
    if (s.length() == 2) {return "000000" + s;}
    else
    if (s.length() == 3) {return "00000" + s;}
    else
    if (s.length() == 4) {return "0000" + s;}
    else
    if (s.length() == 5) {return "000" + s;}
    else
    if (s.length() == 6) {return "00" + s;}
    else
    if (s.length() == 7) {return "0" + s;}
    else{
        return s;
    }

}//end of Log::toHex8String