if (fromContext != null)
{
ControllerState state = dependentState;
if (state == null)
state = ControllerState.INSTANTIATED;
Controller controller = context.getController();
ControllerContext lookup = controller.getContext(getUnderlyingValue(), state);
if (lookup == null)
throw new Error("Should not be here - dependency failed - " + this);
return fromContext.executeLookup(lookup);
}
// by class type
if (getUnderlyingValue() == null)
{
Controller controller = context.getController();
ControllerContext lookup = controller.getInstalledContext(info.getType());
if (lookup == null)
{
if (InjectionOption.STRICT.equals(injectionOption))
{
throw new IllegalArgumentException("Possible multiple matching beans, see log for info.");