public class StartService extends DeploymentStep<StartService> {
public StartService() {
beforeCallable = new TaskCallable<Object, TaskResult<?>>() {
@Override
public TaskResult<?> call(SessionContext $, Task<Object, TaskResult<?>> task) throws Exception {
ReleasesPlugin releases = $.getGlobal().plugin(ReleasesPlugin.class);
try {
$.var(releases.pendingRelease).activate();
} catch (Fun.UndefinedException e) {
// a case of standalone start