Restructure code for feedback session questions (Java code) #2739

Fixes #2739 

Restructure java code for feedback questions
Can anything be done about the duplication between this method and the one above?