if (isSingleton()) {
/*
if the injector is for a singleton, we create a variable to hold the singleton reference in the bootstrapper
method and assign it with CreationalContext.getInstance().
*/
ctx.globalAppend(declareVariable(type).asFinal().named(varName)
.initializeWith(loadVariable(creationalCallbackVarName).invoke("getInstance",
Refs.get("context"))));
/*
use the variable we just assigned as the return value for this injector.