queueChangeEvent(new AssetChangeEvent( agentAsset, AssetChangeEvent.NEW_ASSET));
queueChangeEvent(new AssetChangeEvent( agentAsset, NEW_ASSET));
    private void addAsset(String agentName, int type) {        AssetTechSpecInterface hostAsset;        AssetTechSpecInterface nodeAsset;        AssetTechSpecInterface agentAsset;        String nodeName = null;        String hostName = null;                if ( type == CommunityStatusModel.AGENT ) {                nodeName = csm.getLocation(agentName);                if (nodeName != null) {                    hostName = csm.getLocation(nodeName);                }        }        else if ( type == CommunityStatusModel.NODE ) { //node & node agent have the same name            nodeName = agentName;            hostName = csm.getLocation(nodeName);        }        if (hostName == null || nodeName == null) {            if ( type == CommunityStatusModel.AGENT ) {                //logger.warn("!!!! [ASSET NOT ADDED] Saw new AGENT asset ["+agentName+"] without host/node info: hostName = "+hostName + "  nodeName = "+nodeName);            } else if ( type == CommunityStatusModel.NODE ) {                //logger.warn("!!!! [ASSET NOT ADDED] Saw new NODE asset ["+agentName+"] without host/node info: hostName = "+hostName + "  nodeName = "+nodeName);            }            return;        }        hostAsset = getHost(hostName);        nodeAsset = getNode(hostAsset, nodeName);        //Make sure we haven't seen this agent before we create a new one!        agentAsset = assetSvc.getAssetTechSpec(new AssetID(agentName, AssetType.AGENT));        if (agentAsset == null) {            agentAsset = new DefaultAssetTechSpec( hostAsset, nodeAsset,  agentName, AssetType.AGENT, us.nextUID());	    assetSvc.putAssetTechSpec(agentAsset);            queueChangeEvent(new AssetChangeEvent( agentAsset, AssetChangeEvent.NEW_ASSET));        }    }