protected boolean isAttachAPINotFound(final Throwable t){
  boolean missing=false;
  if (t instanceof ClassNotFoundException || t instanceof NoClassDefFoundError) {
    if (!isAttachAPIOnClasspath()) {
      final StringWriter stackTraceWriter=new StringWriter();
      t.printStackTrace(new PrintWriter(stackTraceWriter));
      final String stackTrace=stackTraceWriter.toString();
      for (      String attachApiPackage : ATTACH_API_PACKAGES) {
        missing|=stackTrace.contains(attachApiPackage);
      }
    }
  }
  return missing;
}

protected boolean isAttachAPINotFound ( final Throwable t ) { boolean missing = false ; if ( t instanceof ClassNotFoundException || t instanceof NoClassDefFoundError ) { if ( ! isAttachAPIOnClasspath ( ) ) { final StringWriter stackTraceWriter = new StringWriter ( ) ; t . printStackTrace ( new PrintWriter ( stackTraceWriter ) ) ; final String stackTrace = stackTraceWriter . toString ( ) ; for ( String attachApiPackage : ATTACH_API_PACKAGES ) { missing |= stackTrace . contains ( attachApiPackage ) ; } } } return missing ; }
this method attempts to make a best effort determination for whether the attach api classes are on the classpath .
