public static String toHex(String arg){
  return String.format("%04X",new BigInteger(1,arg.getBytes()));
}

public static String toHex ( String arg ) { return String . format ( "%04X" , new BigInteger ( 1 , arg . getBytes ( ) ) ) ; }
create queries with mid for type i . e . mid - > type
