identify servlet returns list of matched foods. some code refactoring