h1. Fields
*Objectype*: _org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig_
||  *Name*  ||  *Type*  ||  *Default Value*   ||  *Description*  ||
| *name* | {{string}} | context2 | The name of the context. |  
| *priority* | {{string}} | {{100}} | The context priority, the higher number indicates higher priority. Because a site may have several life cycles so the life cycle with higher priority will be excuted priorly.|
| *lifecycle* | {{string}} | {{lifecycle2}} | The name of the life cycle. |
| *site* | {{string}} | {{acme}} | The site that will apply the context configuration. |

h1. Sample configuration
{code:xml}
<external-component-plugins>
  <target-component>org.exoplatform.services.wcm.extensions.publication.PublicationManager</target-component>
  <component-plugin>
    <name>AddContext</name>
    <set-method>addContext</set-method>
    <type>org.exoplatform.services.wcm.extensions.publication.context.ContextPlugin</type>
    <init-params>
      <object-param>
        <name>contexts</name>
        <object type="org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig">
          <field  name="contexts">
            <collection type="java.util.ArrayList">
              <value>
                <object type="org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig$Context">
                  <field name="name"><string>context2</string></field>
                  <field name="priority"><string>100</string></field>
                  <field name="lifecycle"><string>lifecycle2</string></field>
                  <field name="site"><string>acme</string></field>
                </object>
              </value>
            </collection>
          </field>
        </object>
      </object-param>
    </init-params>
  </component-plugin>
</external-component-plugins>
{code}

In which:
* *Target-component*: {{org.exoplatform.services.wcm.extensions.publication.PublicationManager}}
* *Name*: {{AddLifecycle}}
* *Set-method*: {{addLifecycle}}
* *Type*: {{org.exoplatform.services.wcm.extensions.publication.lifecycle.StatesLifecyclePlugin}}


