class CaptionComponentWrapper implements ComponentWrapper {

    @Override
    public void setValidationMessages(MessageList messagesForProperty) {
        if (component instanceof AbstractComponent) {
            AbstractComponent field = (AbstractComponent)component;
            field.setComponentError(getErrorHandler(messagesForProperty));
        }
    }

    public  CaptionComponentWrapper(Component component, WrapperType wrapperType);
    public  CaptionComponentWrapper(String id, Component component, WrapperType wrapperType);

}