private static void checkForXStream(){
  try {
    Class.forName("com.thoughtworks.xstream.XStream");
    m_Present=true;
  }
 catch (  Exception e) {
    m_Present=false;
  }
}

private static void checkForXStream ( ) { try { Class . forName ( "com.thoughtworks.xstream.XStream" ) ; m_Present = true ; } catch ( Exception e ) { m_Present = false ; } }
checks whether the xstream is present in the class path
