code: private ProxyType extendedProxyTypeAsProxyType(ExtendedProxyType pt) {
  
      switch (pt) {
  
      case DRAFT_RFC:
        return ProxyType.DRAFT_RFC;
  
      case LEGACY:
        return ProxyType.LEGACY;
  
      case RFC3820:
        return ProxyType.RFC3820;
  
      default:
        return null;
      }
    }
docs: Why we have to do this nonsense?