public static boolean hasJoda(){
  try {
    Class.forName("org.joda.time.LocalDate");
    return true;
  }
 catch (  ClassNotFoundException e) {
    return false;
  }
}

public static boolean hasJoda ( ) { try { Class . forName ( "org.joda.time.LocalDate" ) ; return true ; } catch ( ClassNotFoundException e ) { return false ; } }
returns true if joda is found on classpath .
