public static String arrayToHexString(byte[] array){
  return arrayToHexString(array,0,array.length);
}

public static String arrayToHexString ( byte [ ] array ) { return arrayToHexString ( array , 0 , array . length ) ; }
helper method to convert a byte [ ] array ( such as a msgid ) to a hex string
