String swimage = swupgrade.getSetting("upgradecode").getValue(); String imageid = swupgrade.getSetting(IMAGE_ID).getValue();
String swimage = swupgrade.getSetting("upgradecode." + getCfgPrefix()).getValue(); String imageid = swupgrade.getSetting(IMAGE_ID + "." + getCfgPrefix()).getValue();
    public String getSoftwareUpgradeConfig() {        Setting swupgrade = getSettings().getSetting("upgrade");        if (swupgrade == null) {            return StringUtils.EMPTY;        }        String swimage = swupgrade.getSetting("upgradecode").getValue();        String imageid = swupgrade.getSetting(IMAGE_ID).getValue();        CiscoModel model = (CiscoModel) getModel();        String upghex = model.getUpgCode();        if (StringUtils.isBlank(swimage) || swimage.equals(NONE)                || imageid.equals(ZERO)) {            return StringUtils.EMPTY;        }        return "upgradecode:3," + upghex + ",0.0.0.0,69," + imageid + "," + swimage;    }