public String findSourceFile ( StackTraceElement [ ] target , String defaultValue ) { for ( StackTraceElement e : target ) { if ( CLEANER . isIn ( e ) ) { return e . getFileName ( ) ; } } return defaultValue ; }
Finds the source file of the target stack trace . Returns the default value if source file cannot be found .