". Check method: " + GenUtil.getMethodString(method) + " in class " + method.getDeclaringClass().getFullyQualifiedName());
}
final List<Statement> statements = new ArrayList<Statement>();
Sync syncAnnotation = ctx.getAnnotation();
statements.add(Stmt.declareFinalVariable("objectClass", Class.class, Stmt.loadLiteral(Object.class)));
statements.add(Stmt.declareFinalVariable(
"syncWorker",
ClientSyncWorker.class,
Stmt.invokeStatic(ClientSyncWorker.class, "create", syncAnnotation.query(),
Stmt.loadVariable("objectClass"), null)));
statements.add(Stmt.loadVariable("syncWorker").invoke("addSyncCallback", createSyncCallback(ctx)));
ctx.getTargetInjector().addStatementToEndOfInjector(