public void onServiceStartedEvent(ServiceStartedEvent event,
			ActivityContextInterface aci) {
		tracer.info("Restcomm SLEE REST Client Enabler Example service activation.");
		try {
			RESTClientEnablerChild child = (RESTClientEnablerChild) getChildRelation()
					.create(ChildRelationExt.DEFAULT_CHILD_NAME);
			String uri = twitterStatusUpdateBaseURI
					+ URLEncoder.encode(
							"Restcomm SLEE REST Client Application Enabler Example ACTIVATED - "
									+ new Date(), "UTF-8");
			RESTClientEnablerRequest request = new RESTClientEnablerRequest(
					RESTClientEnablerRequest.Type.POST, uri)
					.setOAuthConsumer(consumer);
			child.execute(request);
		} catch (Exception e) {
			tracer.severe("failed to post service activation to twitter", e);
		}
	}
public void onServiceStartedEvent ( ServiceStartedEvent event , ActivityContextInterface aci ) { tracer . info ( "Restcomm SLEE REST Client Enabler Example service activation." ) ; try { RESTClientEnablerChild child = ( RESTClientEnablerChild ) getChildRelation ( ) . create ( ChildRelationExt . DEFAULT_CHILD_NAME ) ; String uri = twitterStatusUpdateBaseURI + URLEncoder . encode ( "Restcomm SLEE REST Client Application Enabler Example ACTIVATED - " + new Date ( ) , "UTF-8" ) ; RESTClientEnablerRequest request = new RESTClientEnablerRequest ( RESTClientEnablerRequest . Type . POST , uri ) . setOAuthConsumer ( consumer ) ; child . execute ( request ) ; } catch ( Exception e ) { tracer . severe ( "failed to post service activation to twitter" , e ) ; } }
//////////////////