Refactoring of methods for populating jsp fields