code: @Override
      protected CommPortAdapter createResourceImpl()
      {
          //get COMM port name
          String portName=this.getPortName();
          
          //get timeout
          int timeout=this.getTimeOut();
  
          CommPort commPort=null;
          try
          {
              //get COMM port identifier
              CommPortIdentifier commPortIdentifier=this.getPortIdentifier(portName);
  
              //open connection
              commPort=commPortIdentifier.open("fax4j",timeout);
          }
          catch(Exception exception)
          {
              throw new FaxException("Unable to connect to COMM port: "+portName,exception);
          }
  
          //create adapter wrapper
          CommPortAdapter adapter=new RXTXCommPortAdapter(commPort);
          
          return adapter;
      }
docs: Creates and returns the resource.
  
  @return  The resource