Try to generalize insertion of entities