finished servlet logic.