extending from ResterviceEntity