/// <summary>
        /// 把子节点添加到网关路由节点,根据网关节点和子节点是否为空处理
        /// </summary>
        /// <param name="fromTransition">起始转移</param>
        /// <param name="currentGatewayActivity">当前网关节点</param>
        /// <param name="gatewayComponent">网关Component</param>
        /// <param name="child">子节点</param>
        /// <returns>下一步Component</returns>
        protected NextActivityComponent AddChildToGatewayComponent(TransitionEntity fromTransition,
                                                                   ActivityEntity currentGatewayActivity,
                                                                   NextActivityComponent gatewayComponent,
                                                                   NextActivityComponent child)
        {
            if ((gatewayComponent == null) && (child != null))
            {
                gatewayComponent = NextActivityComponentFactory.CreateNextActivityComponent(fromTransition, currentGatewayActivity);
            }

            if ((gatewayComponent != null) && (child != null))
            {
                gatewayComponent.Add(child);
            }

            return(gatewayComponent);
        }