Refactor set nodes contents method in ApplicationRequest class