AssetStateDescriptor assetState = assetType.findState(stateName);
AssetStateDimension assetState = assetType.findStateDimension(stateName);
    private void start_Defense(Attributes attrs){         ERROR = false; //reset, start of new descriptor        String name = attrs.getValue("name");        String type = attrs.getValue("assetType");                String idempotent = attrs.getValue("idempotent");        String reversible = attrs.getValue("reversible");                String abortable = attrs.getValue("abortable");        String tempCost = attrs.getValue("tempCost");                String tempBenefit = attrs.getValue("tempBenefit");        String stateName = attrs.getValue("affectsAssetState");         try {             AssetType assetType = AssetType.findAssetType(type);            if ( assetType == null) {                 ERROR = true;                 logger.warn("*** Cannot process this defense entry -- Defense XML -  unknown asset type = : "+type);                            return;            }            AssetStateDescriptor assetState = assetType.findState(stateName);            if ( assetState == null) {                 ERROR = true;                 logger.warn("*** Cannot process this defense entry -- Defense XML -  unknown asset state = : "+stateName + " for this asset type: "+type);                            return;            }            boolean isIdempotent = Boolean.valueOf(idempotent).booleanValue();            boolean isReversible = Boolean.valueOf(reversible).booleanValue();            boolean isAbortable = Boolean.valueOf(abortable).booleanValue();            Double dTempCost  = Double.valueOf(tempCost);            Double dTempBenefit  = Double.valueOf(tempBenefit);            if (name != null && !ERROR) {                currentDefense = new DefaultDefenseTechSpec(name, uid.nextUID(), isIdempotent, isReversible, isAbortable, dTempCost.doubleValue(), dTempBenefit.doubleValue(), assetType, assetState);                currentMonitoringLevel = null;            } else {                ERROR = true;                logger.warn("*** Cannot process this defense entry -- Defense XML -  problem importing defense attrs for defense = : "+name);                        }        } catch (NumberFormatException e) {            ERROR = true;            logger.warn("*** Cannot process this defense entry -- Defense XML - Defense element - error converting cost or benefit to double. Defense = "+name);                    }    }