static void saveException(Exception ex){
  StringWriter sw=new StringWriter();
  ex.printStackTrace(new PrintWriter(sw));
  initSecondaryError=sw.toString();
}

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