public MailSessionType<ApplicationDescriptor> getOrCreateMailSession()
   {
      List<Node> nodeList = model.get("mail-session");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new MailSessionTypeImpl<ApplicationDescriptor>(this, "mail-session", model, nodeList.get(0));
      }
      return createMailSession();
   }
public MailSessionType < ApplicationDescriptor > getOrCreateMailSession ( ) { List < Node > nodeList = model . get ( "mail-session" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new MailSessionTypeImpl < ApplicationDescriptor > ( this , "mail-session" , model , nodeList . get ( 0 ) ) ; } return createMailSession ( ) ; }
If not already created, a new <code>mail-session</code> element will be created and returned.
Otherwise, the first existing <code>mail-session</code> element will be returned.
@return the instance defined for the element <code>mail-session</code>