ClassSourceFileComposerFactory factory = new ClassSourceFileComposerFactory(
type.getPackageNome(), type.getSimpleSourceName());
factory.setSuperclass(AbstractAutoBean.class.getCanonicalName() + "<"
+ type.getPeerType().getQualifiedSourceName() + ">");
SourceWriter sw = factory.createSourceWriter(context, pw);
writeShim(sw, type);
// Instance initializer code to set the shim's association
sw.println("{ %s.set(shim, %s.class.getName(), this); }",