Add setting for callback on EntityManager initialization