}
@Override
public void onSpecError(GalenPageRunner pageRunner, PageValidation pageValidation, String objectName, Spec originalSpec, ValidationError error) {
LayoutSpec spec = new LayoutSpec();
spec.setPlace(originalSpec.getPlace());
currentObject.getSpecs().add(spec);
spec.setText(originalSpec.getOriginalText());
spec.setFailed(true);
spec.setOnlyWarn(originalSpec.isOnlyWarn());
spec.setImageComparison(error.getImageComparison());
spec.setErrorMessages(error.getMessages());
spec.setErrorAreas(error.getErrorAreas());
pickSubObjectsForSpec(spec);
}