*
* @param srcWriter
*/
protected void createController(SourcePrinter srcWriter, String viewVariable)
{
String genClass = new ControllerProxyCreator(logger, context, controllerClass).create();
srcWriter.println("this._controller = new "+genClass+"("+viewVariable+");");
srcWriter.println("(("+DeviceAdaptiveController.class.getCanonicalName()+")this._controller).setBoundWidget(this);");
IocContainerRebind.injectFieldsAndMethods(srcWriter, controllerClass, "this._controller", viewVariable+".getTypedIocContainer()", view, device);
}