private StackTraceElement [ ] concatWithJavaStackTrace ( StackTraceElement [ ] javaStackTrace ) { if ( soyStackTrace . isEmpty ( ) ) { return javaStackTrace ; } StackTraceElement [ ] finalStackTrace = new StackTraceElement [ soyStackTrace . size ( ) + javaStackTrace . length ] ; soyStackTrace . toArray ( finalStackTrace ) ; System . arraycopy ( javaStackTrace , 0 , finalStackTrace , soyStackTrace . size ( ) , javaStackTrace . length ) ; return finalStackTrace ; }
Prepend the soy stack trace to the given standard java stack trace .