question: static void saveException ( Exception ex ) { StringWriter sw = new StringWriter ( ) ; ex . printStackTrace ( new PrintWriter ( sw ) ) ; initSecondaryError = sw . toString ( ) ; }
target:  Helper function to handle associated exceptions during initialization of properties using external properties file in a single war deployment.