code cleanup and format
Exception management; use of Response; use UnrestrictedSessionRunner