if (context instanceof MethodContext) {
Operation operation = (Operation) context.get(Operation.class);
if (operation != null) {
// replace the operation with a wrapped one that ignores postbacks
context.put(Operation.class, new IgnorePostbackOperation(operation));
}
}
if (context instanceof FieldContext) {
Binding binding = (Binding) context.get(Binding.class);