private static boolean hasOkHttpOnClasspath(){
  try {
    Class.forName("com.squareup.okhttp.OkHttpClient");
    return true;
  }
 catch (  ClassNotFoundException e) {
    return false;
  }
}

private static boolean hasOkHttpOnClasspath ( ) { try { Class . forName ( "com.squareup.okhttp.OkHttpClient" ) ; return true ; } catch ( ClassNotFoundException e ) { return false ; } }
determine whether or not okhttp is present on the runtime classpath .
