In our configuration, adding Rocoto.expandVariables() causes container to fail with several errors like this:
- Could not expose() a.b.c.d.ContainerComponent annotated with @OrderedNamed(order=21,value=CompositeContainerComponent:9d9dbef7-93e8-4cf8-8be7-74c697624f33, it must be explicitly bound.
at
...
I am not 100% sure why, but what fixes it is making a copy of Rocoto.java that makes a call to Modules.getElements( baseModules ) inside configure() and not inside expandVariables(). I suspect the elements returned at the point Guice is configuring is different.