logger.debug("Added new Actuator: \n"+actuator.toString() );
if (logger.isDebugEnabled()) logger.debug("Added new Actuator: \n"+actuator.toString() );
    protected Vector processElement(Element element) {                //publish to BB during execute().        //1. Create a new AssetType instance &        String actuatorName = element.getAttribute("name");        String type = element.getAttribute("affectsAssetType");        String stateDim = element.getAttribute("affectsStateDimension");        String actionType = element.getAttribute("actionType");                AssetType affectsAssetType = AssetType.findAssetType(type);        //what to do when assetType is null? - create it, process it later?        if (affectsAssetType == null) {            logger.warn("ActuatorType XML Error - affectsAssetType unknown: "+type);            return null;        }        AssetStateDimension asd = affectsAssetType.findStateDimension(stateDim);        //what to do when assetType is null? - create it, process it later?        if (asd == null) {            logger.error("ActuatorType["+actuatorName+"]  XML Error - asset state dimension not found! unknown dimension: "+stateDim+ " for asset type = " + type);            return null;        }                //assign actionType        int actionTypeInt;        if (actionType == null || actionType.equalsIgnoreCase("CORRECTIVE") ) { actionTypeInt = ActionTechSpecInterface.CORRECTIVE_ACTIONTYPE; }        else if (actionType.equalsIgnoreCase("PREVENTIVE") ) { actionTypeInt = ActionTechSpecInterface.PREVENTIVE_ACTIONTYPE; }        else if (actionType.equalsIgnoreCase("APPLICATION") ) { actionTypeInt = ActionTechSpecInterface.APPLICATION_ACTIONTYPE; }        else if (actionType.equalsIgnoreCase("COMPENSATORY") ) { actionTypeInt = ActionTechSpecInterface.COMPENSATORY_ACTIONTYPE; }        else {            actionTypeInt = ActionTechSpecInterface.CORRECTIVE_ACTIONTYPE; //default            logger.warn("ActuatorType["+actuatorName+"]  did not specify an action type. Defaulting to corrective.");        }                if (us == null) {            logger.warn("ActuatorType["+actuatorName+"]  XML Error - UIDService is null!");            return null;        }        UID uid = us.nextUID();        ActionTechSpecImpl actuator = new ActionTechSpecImpl( actuatorName, uid, affectsAssetType, asd, actionTypeInt);                //Create an ActuatorType        Element e;        for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {            if (child.getNodeType() == Node.ELEMENT_NODE && child.getNodeName().equalsIgnoreCase("Action") ) {                e = (Element)child;                parseAction(e, actuator, affectsAssetType, asd);            } //else, likely a text element - ignore        }        //Add action to service        actionTechSpecService.addActionTechSpec( actuatorName, actuator );                logger.debug("Added new Actuator: \n"+actuator.toString() );        return null;    }