code: protected void setConnectionType(VirtualConnection vc) {
  
          if (this.myType == 0 || vc == null) {
              ConnectionType newType = ConnectionType.getVCConnectionType(vc);
              this.myType = (newType == null) ? 0 : newType.export();
          }
      }
docs: Set ConnectionType based on the input virtual connection.
  
  @param vc