Best practices for CDI programs