Iterator iter = serviceAttributes.iterator(); serviceAttributes = new Vector(); while(iter.hasNext()) { Vector v = (Vector)iter.next(); String id = (String)v.remove(0); ServiceLocationAttribute a = new ServiceLocationAttribute(id, v); serviceAttributes.add(a); }
    public synchronized void sfDeploy() throws SmartFrogException, RemoteException {        super.sfDeploy();        // get configureation for SLP        Properties p = getSlpConfiguration();                // get properties for the service to advertise.        toAdvertise = sfResolve(toAdvertiseRef);        serviceType = (String)sfResolve(serviceTypeRef);        serviceAttributes = (Vector)sfResolve(serviceAttributeRef);        serviceLifetime = ((Integer)sfResolve(serviceLifetimeRef)).intValue();                // build URL.        createServiceURL();                // create advertiser...        try {            ServiceLocationManager.setProperties(p);            advertiser = ServiceLocationManager.getAdvertiser(new Locale(p.getProperty("net.slp.locale")));        }catch(ServiceLocationException ex) {            throw (SmartFrogException)SmartFrogException.forward(ex);        }    }