FormFragmentAttributes attributes =
(FormFragmentAttributes) papiAttributes;
// Get the current form fragment from the request context
FormFragment fragment = context.getFormFragment(attributes.getName());
if (fragment != null) {
String value = attributes.getLinkText();
if (value != null) {
fragment.setNextLinkText(value);
}
value = attributes.getBackLinkText();
if (value != null) {
fragment.setPreviousLinkText(value);
}
}
return CONTINUE_PROCESSING;
}