annotation.setTypeName(ast.newSimpleName("PathVariable"));
StringLiteral pathVariableName = ast.newStringLiteral();
pathVariableName.setLiteralValue(variable.getVariableName());
annotation.setValue(pathVariableName);
addLinkedPosition(new StringLiteralTrackedPosition(astRewrite.track(pathVariableName)), false, "variableName");
ListRewrite listRewrite = astRewrite.getListRewrite(paramDecl, SingleVariableDeclaration.MODIFIERS2_PROPERTY);
listRewrite.insertFirst(annotation, null);
listRewrite = astRewrite.getListRewrite(methodDecl, MethodDeclaration.PARAMETERS_PROPERTY);