Rest in MainPage servlet