@Deprecated
  public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) {
    PhoneMetadata phoneMetadata =
        MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom);
    if (phoneMetadata == null) {
      return false;
    }
    PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc();
    if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) {
      return false;
    }
    PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode();
    return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc);
  }
@Deprecated
  public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) {
    PhoneMetadata phoneMetadata =
        MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom);
    if (phoneMetadata == null) {
      return false;
    }
    PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc();
    if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) {
      return false;
    }
    PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode();
    return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc);
  }
@deprecated public boolean isvalidshortnumberforregion(string shortnumber, string regiondialingfrom) { phonemetadata phonemetadata = metadatamanager.getshortnumbermetadataforregion(regiondialingfrom); if (phonemetadata == null) { return false; } phonenumberdesc generaldesc = phonemetadata.getgeneraldesc(); if (!matchespossiblenumberandnationalnumber(shortnumber, generaldesc)) { return false; } phonenumberdesc shortnumberdesc = phonemetadata.getshortcode(); return matchespossiblenumberandnationalnumber(shortnumber, shortnumberdesc); }