while (it.hasNext()) {
errors = validateComponentRelativeSizes(it.next(), errors,
parent);
}
} else if (component instanceof Form) {
Form form = (Form) component;
if (form.getLayout() != null) {
errors = validateComponentRelativeSizes(form.getLayout(),
errors, parent);
}
if (form.getFooter() != null) {
errors = validateComponentRelativeSizes(form.getFooter(),
errors, parent);
}
}
return errors;