code: private final static boolean pstRecursesOnNested(Throwable t) {
          //This method added for D200273
  
          // the following Throwables don't print out the nested throwable when printStackTrace is called
          Class cName = t.getClass();
          if (cName.getName() != null && cName.getName().equals("org.omg.CORBA.portable.UnknownException"))
              return false;
          if (cName.getName() != null && cName.getName().equals("javax.mail.MessagingException"))
              return false;
          if (t instanceof org.xml.sax.SAXException)
              return false;
          if (cName.getName() != null && cName.getName().equals("javax.servlet.jsp.JspException"))
              return false;
          if (cName.getName() != null && cName.getName().equals("javax.servlet.ServletException"))
              return false;
          if (t instanceof javax.naming.NamingException)
              return false;
          if (t instanceof java.sql.SQLException)
              return false;
          if (cName.getName() != null && cName.getName().equals("javax.jms.JMSException"))
              return false;
  
          return true;
      }
docs: Determine if the specified Throwable prints out the stack of a nested throwable.
  <p>
  
  @param a non-null Throwable.
  @return true if the Throwable provides the appropriate behaviour, false otherwise