move schedule code to spirng-servlet