private static boolean isUrlEncodedForm(Context context) {
   String contentType = context.getHeader("Content-Type");
   return (contentType != null) && (contentType.contains("application/x-www-form-urlencoded"));
 }