private String decrypt(String encryptedMessage)
   {
      byte[] encMsgAsBytes = null;
      byte[] decrypted = null;

      try
      {
         encMsgAsBytes = hexStringToByteArray(encryptedMessage);
         SecretKeySpec keyspec = new SecretKeySpec(RemoteQuery.secretKey.getBytes("UTF-8"), "AES");
         //IvParameterSpec ivspec = new IvParameterSpec(iv.getBytes("UTF-8"));         
         //cipher.init(Cipher.ENCRYPT_MODE,keyspec, ivspec); // CBC uses iv
         cipher.init(Cipher.DECRYPT_MODE, keyspec); // ECB uses no iv
         decrypted = cipher.doFinal(encMsgAsBytes);         
      }
      catch (InvalidKeyException e1)
      {         
         e1.printStackTrace();
      }
      /*catch (InvalidAlgorithmParameterException e1)
      {         
         e1.printStackTrace();
      }*/
      catch (UnsupportedEncodingException e)
      {
         e.printStackTrace();
      }
      catch (IllegalBlockSizeException e)
      {        
         e.printStackTrace();
      }
      catch (BadPaddingException e)
      {         
         e.printStackTrace();
      }      

      String plainText = hexStringToCleanUTF8string(bytesToHexString(decrypted));

      return plainText;
   }