class MultipleInstanceVariableFieldRenderer extends FieldRenderer<MultipleInstanceVariableFieldDefinition, DefaultFormGroup> {

    @Override
    @SuppressWarnings("unchecked")
    protected void registerCustomFieldValidators(FormFieldImpl field) {
        final ClientSession session = sessionManager.getCurrentSession();
        final Diagram diagram = session.getCanvasHandler().getDiagram();
        final Node node = getSelectedNode(diagram, sessionManager.getCurrentSession());
        field.getCustomValidators().add(new MultipleInstanceVariableValidator(node, translationService));
    }

    @Inject public  MultipleInstanceVariableFieldRenderer(MultipleInstanceVariableEditorWidget widget,
                                                 SessionManager sessionManager,
                                                 ClientTranslationService translationService);

}