private void setFieldsEnabled(
      final ViewDefinitionState view,
      final boolean visibleOrRequiredProductionLine,
      final boolean visibleOrRequiredOccupationTypeName) {
    FieldComponent productionLine = (FieldComponent) view.getComponentByReference(PRODUCTION_LINE);
    FieldComponent occupationTypeName =
        (FieldComponent) view.getComponentByReference(OCCUPATION_TYPE_NAME);

    productionLine.setVisible(visibleOrRequiredProductionLine);
    productionLine.setRequired(visibleOrRequiredProductionLine);
    productionLine.requestComponentUpdateState();
    occupationTypeName.setVisible(visibleOrRequiredOccupationTypeName);
    occupationTypeName.setRequired(visibleOrRequiredOccupationTypeName);
    occupationTypeName.requestComponentUpdateState();
  }
  public void changeNextOperationAfterProducedTypeNorm(
      final ViewDefinitionState viewDefinitionState,
      final ComponentState state,
      final String[] args) {
    FieldComponent nextOperationAfterProducedType =
        (FieldComponent)
            viewDefinitionState.getComponentByReference(NEXT_OPERATION_AFTER_PRODUCED_TYPE);
    FieldComponent nextOperationAfterProducedQuantity =
        (FieldComponent)
            viewDefinitionState.getComponentByReference(NEXT_OPERATION_AFTER_PRODUCED_QUANTITY);
    FieldComponent nextOperationAfterProducedQuantityUNIT =
        (FieldComponent)
            viewDefinitionState.getComponentByReference(
                TechnologyOperCompTNFOFields.NEXT_OPERATION_AFTER_PRODUCED_QUANTITY_UNIT);

    Boolean visibilityValue = "02specified".equals(nextOperationAfterProducedType.getFieldValue());
    nextOperationAfterProducedQuantity.setVisible(visibilityValue);
    nextOperationAfterProducedQuantity.setEnabled(visibilityValue);
    nextOperationAfterProducedQuantityUNIT.setVisible(visibilityValue);
  }