Loading resource by id automaticly