public MimeMappingType<WebAppDescriptor> getOrCreateMimeMapping()
   {
      List<Node> nodeList = model.get("mime-mapping");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new MimeMappingTypeImpl<WebAppDescriptor>(this, "mime-mapping", model, nodeList.get(0));
      }
      return createMimeMapping();
   }
public MimeMappingType < WebAppDescriptor > getOrCreateMimeMapping ( ) { List < Node > nodeList = model . get ( "mime-mapping" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new MimeMappingTypeImpl < WebAppDescriptor > ( this , "mime-mapping" , model , nodeList . get ( 0 ) ) ; } return createMimeMapping ( ) ; }
If not already created, a new <code>mime-mapping</code> element will be created and returned.
Otherwise, the first existing <code>mime-mapping</code> element will be returned.
@return the instance defined for the element <code>mime-mapping</code>