renamed getModel to getEntity [ISSUE #4]