code: public static StackTraceElement determineCauseStackTraceElementsn(Throwable e)
  	{
  		
  		if(e.getCause() != null)
  			return determineCauseStackTraceElementsn(e.getCause());
  		
  		StackTraceElement[] stackTraceElements = e.getStackTrace();
  		
  		if(stackTraceElements == null || stackTraceElements.length == 0)
  			return null;
  
  		
  		return stackTraceElements[0];
  		
  	}
docs: -----------------------------------------------