Object modeling for hapi applications