cf.addConstructor(new Class[]
{ StrategyRegistry.class }, null, "_registry = $1;");
// TODO: Should we add a check for $1 == null?
cf.addMethod(Modifier.PRIVATE, new MethodSignature(serviceInterface, "_getStrategy",
new Class[]
{ Object.class }, null), "return (" + serviceInterface.getName()
+ ") _registry.getStrategy($1.getClass());");
MethodIterator i = new MethodIterator(serviceInterface);