added insertEntityFromClass