for (Iterator iter = getEndpoints().iterator(); iter.hasNext();) { Endpoint endpoint = (Endpoint) iter.next(); if (endpoint instanceof WSNSubscriptionEndpoint) { endpoint.activate(); } } this.status = LifeCycleMBean.STARTED;
        public void start() throws Exception {            for (Iterator iter = getEndpoints().iterator(); iter.hasNext();) {                Endpoint endpoint = (Endpoint) iter.next();                if (endpoint instanceof WSNPullPointEndpoint) {                    endpoint.activate();                }            }            for (Iterator iter = getEndpoints().iterator(); iter.hasNext();) {                Endpoint endpoint = (Endpoint) iter.next();                if (endpoint instanceof WSNSubscriptionEndpoint) {                    endpoint.activate();                }            }            this.status = LifeCycleMBean.STARTED;        }