code: @Override
      protected MailResourcesHolder createResourceImpl()
      {
          //create authenticator
          Authenticator authenticator=null;
          if(this.password!=null)
          {
              authenticator=new MailAuthenticator(this.userName,this.password);
          }
          
          //create session
          Session session=Session.getInstance(this.mailConnectionProperties,authenticator);
  
          //create transport
          Transport transport=this.createTransport(session);
          
          //create holder
          MailResourcesHolder resource=new MailResourcesHolder(session,transport);
          
          return resource;
      }
docs: Creates and returns the resource.
  
  @return  The resource