remove legacy code from jsp