Some extensions for CDI