// Build the root space for the given types
ClassSpace space = new ClassSpaceFactory().create(classLoader, types);
// Start up the container
SmoothieContainer container = new SmoothieContainerImpl(new ExtensionModule(space, true));
Smoothie.setContainer(container);
// Enable aspect-based injection
InjectomaticAspectHelper.setEnabled(true);