public virtual IStepBody ConstructBody(IServiceProvider serviceProvider) { IStepBody body = serviceProvider.GetService(BodyType) as IStepBody; if (body == null) { body = BodyType.CreateInstance(serviceProvider) as IStepBody; } return(body); }