Used with cdi