address most code review comments, including refactoring to move common add-children logic and some app creation logic to new class EntityManagementUtils