	public void initComponentActivity(Body body) {
		if (!init) {
			this.logger = LoggerFactory.getLogger(this.getClass());
			logger.info("Initialising {} component.", this.getClass().getSimpleName());
			eleGenerator = new EleGeneratorForConstructQuery();
			try {
				String address = Constants.getProperties().getProperty("platfomservices.querydispatchapi.endpoint");
				soapServer = Endpoint.publish(address, this);
				logger.info("QueryDispatch SOAP service started at {}.", address);
			} catch (Exception e) {
				logger.error("Exception while publishing QueryDispatch SOAP Service", e);
			}
			try {
				restServer = new PlayPlatformservicesRest(this);
	        	logger.info(String.format("QueryDispatch REST service started with WADL available at "
	        			+ "%sapplication.wadl\n", PlayPlatformservicesRest.BASE_URI));
			} catch (ProcessingException e) {
				logger.error("Exception while publishing QueryDispatch REST Service", e);
			}
			this.init = true;
		}
	}

	public void initComponentActivity(Body body) {
		if (!init) {
			this.logger = LoggerFactory.getLogger(this.getClass());
			logger.info("Initialising {} component.", this.getClass().getSimpleName());
			eleGenerator = new EleGeneratorForConstructQuery();
			try {
				String address = Constants.getProperties().getProperty("platfomservices.querydispatchapi.endpoint");
				soapServer = Endpoint.publish(address, this);
				logger.info("QueryDispatch SOAP service started at {}.", address);
			} catch (Exception e) {
				logger.error("Exception while publishing QueryDispatch SOAP Service", e);
			}
			try {
				restServer = new PlayPlatformservicesRest(this);
	        	logger.info(String.format("QueryDispatch REST service started at %s with WADL remotely available at "
	        			+ "%sapplication.wadl\n", PlayPlatformservicesRest.BASE_URI, Constants.getProperties().getProperty("platfomservices.querydispatchapi.rest")));
			} catch (ProcessingException e) {
				logger.error("Exception while publishing QueryDispatch REST Service", e);
			}
			this.init = true;
		}
	}
