asMethod.setStatement(statement);
asMethod.setParameters(new Parameters());
behaviour.addAsMethod(asMethod);
Imports imports = new Imports();
Importstatement importstatement = new Importstatement();
String fullclassname = template.packagename + "." + template.stateClass;
importstatement.setFullclassname(fullclassname);
importstatement.setStatement("import " + fullclassname + ";");
imports.addImportstatement(importstatement);
behaviour.setImports(imports);
return behaviour;
}