Source:
protected void execute() { if (!bindingsExist()) { logger.debug("There is no existing EcoTouch binding configuration => refresh cycle aborted!"); return; } try { Set<String> tags = new HashSet<String>(); for (EcoTouchBindingProvider provider : providers) { for (String tag : provider.getActiveTags()) { tags.add(tag); } } EcoTouchConnector connector = new EcoTouchConnector(ip, username, password, cookies); HashMap<String, Integer> rawvalues = new HashMap<String, Integer>(); for (String tag : tags) { try { int rawvalue = connector.getValue(tag); rawvalues.put(tag, rawvalue); } catch (Exception e) { continue; } } for (EcoTouchBindingProvider provider : providers) { for (EcoTouchTags item : provider.getActiveItems()) { if (!rawvalues.containsKey(item.getTagName())) { continue; } int heatpumpValue = rawvalues.get(item.getTagName()); State value; if (item.getType() == EcoTouchTags.Type.Analog) { BigDecimal decimal = new BigDecimal(heatpumpValue) .divide(new BigDecimal(10)); value = new DecimalType(decimal); } else if (item.getType() == EcoTouchTags.Type.Word) { if (item.getItemClass() == NumberItem.class) value = new DecimalType(heatpumpValue); else { if (heatpumpValue == 0) value = OnOffType.OFF; else value = OnOffType.ON; } } else { heatpumpValue >>= item.getBitNum(); heatpumpValue &= 1; if (item.getItemClass() == NumberItem.class) value = new DecimalType(heatpumpValue); else { if (heatpumpValue == 0) value = OnOffType.OFF; else value = OnOffType.ON; } } if (item == EcoTouchTags.TYPE_ADAPT_HEATING) { double adapt = ((DecimalType) value).intValue(); adapt = Math.max(0, adapt); adapt = Math.min(8, adapt); adapt = (adapt - 4) / 2.0; value = new DecimalType(adapt); } handleEventType(value, item); } } cookies = connector.getCookies(); } finally { } }

Target:
protected void execute() { if (!bindingsExist()) { logger.debug("There is no existing EcoTouch binding configuration => refresh cycle aborted!"); return; } try { Set<String> tags = new HashSet<String>(); for (EcoTouchBindingProvider provider : providers) { for (String tag : provider.getActiveTags()) { tags.add(tag); } } EcoTouchConnector connector = new EcoTouchConnector(ip, username, password, cookies); HashMap<String, Integer> rawvalues = new HashMap<String, Integer>(); for (String tag : tags) { try { int rawvalue = connector.getValue(tag); rawvalues.put(tag, rawvalue); } catch (Exception e) { continue; } } for (EcoTouchBindingProvider provider : providers) { for (EcoTouchTags item : provider.getActiveItems()) { if (!rawvalues.containsKey(item.getTagName())) { continue; } int heatpumpValue = rawvalues.get(item.getTagName()); State value; if (item.getType() == EcoTouchTags.Type.Analog) { BigDecimal decimal = new BigDecimal(heatpumpValue) .divide(new BigDecimal(10)); value = new DecimalType(decimal); } else if (item.getType() == EcoTouchTags.Type.Word) { if (NumberItem.class.equals(item.getItemClass())) value = new DecimalType(heatpumpValue); else { if (heatpumpValue == 0) value = OnOffType.OFF; else value = OnOffType.ON; } } else { heatpumpValue >>= item.getBitNum(); heatpumpValue &= 1; if (NumberItem.class.equals(item.getItemClass())) value = new DecimalType(heatpumpValue); else { if (heatpumpValue == 0) value = OnOffType.OFF; else value = OnOffType.ON; } } if (item == EcoTouchTags.TYPE_ADAPT_HEATING) { double adapt = ((DecimalType) value).intValue(); adapt = Math.max(0, adapt); adapt = Math.min(8, adapt); adapt = (adapt - 4) / 2.0; value = new DecimalType(adapt); } handleEventType(value, item); } } cookies = connector.getCookies(); } finally { } }