synchronized(allAssets) {
    public static Vector getAgentsInNodes(Vector nodesV) {                Vector found = new Vector();                AssetTechSpecInterface asset;        AssetTechSpecInterface node;                if (nodesV == null || nodesV.size() == 0) {            return found;        }                Iterator nodes = nodesV.iterator();        while ( nodes.hasNext() ) {             node = (AssetTechSpecInterface)nodes.next();                    Iterator assets = allAssets.iterator();            while ( assets.hasNext() ) {                 asset = (AssetTechSpecInterface)assets.next();                if (asset.getNode().equals(node)) {                    found.addElement(asset);                }            }        }        return found;    }