IOEntity replaced with NewEntity, createEntity internalized.