I think you need this:
{code}
cf.addDeclarationVariable(code, context, new Variable(dt, namify(s)), "null");
{code}