String speedMode = speedOM.getValue().toString();
String speedMode = ((OperatingModeImpl)speedOM).getValue().toString();
    private void setOperatingMode() {        String speedMode = speedOM.getValue().toString();        int newMode = ((Integer) modeMap.get(speedMode)).intValue();        if (newMode != mode) {            logger.debug("New mode is " + speedMode);            mode = newMode;        }    }