
import net.epspeak.jesi.*;
import net.espeak.infra.cci.util.*;
import net.espeak.infra.cci.exception.*;

public class %%MAINCLASS%% {

	%%CONNECTION_METHOD%%

	public static void main(String[] args ) {
	   try {
		%%MAINCLASS%% the%%MAINCLASS%% = new %%MAINCLASS%%();
		ESConnection con = the%%MAINCLASS%%.%%CONNECTION_CALL%%;
		ESServiceElement element = the%%MAINCLASS%%.get%%IFACE%%ServiceElement(con); 		
		element.register();
		element.start();		
	   } 
	  catch (Exception e ) 
	  {
		e.printStackTrace();
	  }
				
	}

	protected void handleException(String description , Exception exception ) 
	{
		System.out.println("[EXCEPTION] " + description + " due to : " + exception.getMessage());
	}

