A Java restful aplication appling the domain model pattern