Finally rest service is set properly.