JavaMethod mutator = getMutator(configuration, propertyBean, field);
if("action".equals(propertyBean.getName())) {
try {
accessor.setMethodBody(new VelocityMethodBody(configuration) {
@Override
public String getTemplate() {
return "snippets/get-action.vm";
}
});
mutator.setMethodBody(new VelocityMethodBody(configuration) {
@Override
public String getTemplate() {
return "snippets/set-action.vm";
}
});