public FacesConfigNavigationRuleType<WebFacesConfigDescriptor> getOrCreateNavigationRule()
   {
      List<Node> nodeList = model.get("navigation-rule");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigNavigationRuleTypeImpl<WebFacesConfigDescriptor>(this, "navigation-rule", model, nodeList.get(0));
      }
      return createNavigationRule();
   }
public FacesConfigNavigationRuleType < WebFacesConfigDescriptor > getOrCreateNavigationRule ( ) { List < Node > nodeList = model . get ( "navigation-rule" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new FacesConfigNavigationRuleTypeImpl < WebFacesConfigDescriptor > ( this , "navigation-rule" , model , nodeList . get ( 0 ) ) ; } return createNavigationRule ( ) ; }
If not already created, a new <code>navigation-rule</code> element will be created and returned.
Otherwise, the first existing <code>navigation-rule</code> element will be returned.
@return the instance defined for the element <code>navigation-rule</code>