code: public int getOriginWeight() {
          if (originWeight == null) {
              if (providerInfo == null) {
                  originWeight = RpcConfigs.getIntValue(RpcOptions.PROVIDER_WEIGHT);
              } else {
                  originWeight = CommonUtils.parseInt(providerInfo.getStaticAttr(ProviderInfoAttrs.ATTR_WEIGHT),
                      RpcConfigs.getIntValue(RpcOptions.PROVIDER_WEIGHT));
              }
          }
          return originWeight;
      }
docs: Gets origin weight.
  
  @return the origin weight