Use generic types and expose Model.getObject