Sonar major warning: Avoid Print Stack Trace