code: @Override
      protected HylaFAXClient createResourceImpl()
      {
          HylaFAXClient client=null;
          try
          {
              //create new instance
              client=this.createHylaFAXClient();
              
              //open host
              client.open(this.host,this.port);
              
              //set user
              client.user(this.userName);
              
              //set transfer mode and type
              client.mode(this.mode);
              client.type(this.type);
              
              //set password
              if(this.password!=null)
              {
                  client.pass(this.password);
              }
              
              if(this.enableAdminOperations)
              {
                  //enable admin operations
                  client.admin(this.password);
              }
          }
          catch(RuntimeException exception)
          {
              //release client
              this.releaseResource(client);
  
              throw exception;
          }
          catch(Exception exception)
          {
              //release client
              this.releaseResource(client);
  
              throw new FaxException("General error.",exception);
          }
  
          return client;
      }
docs: Creates and returns the resource.
  
  @return  The resource