CDI is a crazy attempt at building a nice and extensible data management API.