add required jar and adjust RestService for best practices