/// <summary> /// Calls the layout builder plug-in to return a fluent interface for configuring a layout. /// You can pass a layout instance or allow the builder to build one from scratch /// </summary> /// <param name="layoutInstance">Optional instance to configure</param> /// <param name="declaringType">Used to configure the instance from custom attributes</param> /// <returns></returns> public ILayoutDefinition BuildUpLayout(object layoutInstance, Type declaringType, IPackage package) { if (LayoutBuilder == null) { throw new FluentBuilderException("There is no build engine installed that knows how to build layouts"); } return(LayoutBuilder.BuildUpLayout(layoutInstance, declaringType, package ?? _packageContext)); }