In order to create the trait I had to copy the code from the ContainerAware class (written by Fabien) and only changed "abstract class" to "trait". I don't think that makes me the author of the code but co-author of this trait at most ;)