public class CreateDestroyLifecycleAction extends ServiceControllerContextAction
{
public void installAction(ServiceControllerContext context) throws Throwable
{
Service service = context.getServiceProxy();
service.create();
context.getServiceContext().state = ServiceContext.CREATED;
ObjectName objectName = context.getObjectName();
ServiceController serviceController = context.getServiceController();