if (styles != null) {
// Iterate over the styles nested inside the provided styles. The
// order should be preserved in order to render correctly.
for (Iterator i = styles.iterator(); i.hasNext(); ) {
NestedStyles nestedStyles = (NestedStyles) i.next();
final PseudoStyleEntity pseudoStyleEntity =
nestedStyles.getPseudoStyleEntity();
Link link = null;
if (pseudoStyleEntity.equals(PseudoElements.MCS_NEXT)) {
link = createLink(nestedStyles,
URLConstants.NEXT_FORM_FRAGMENT);
} else if (pseudoStyleEntity.equals(PseudoElements.MCS_PREVIOUS)) {