code: public final String formatCommon(final PhoneNumberInterface pphoneNumberData,
        final PhoneCountryData pcountryData) {
      if (pphoneNumberData != null && pcountryData != null && StringUtils.equals(
          pcountryData.getCountryCodeData().getCountryCode(), pphoneNumberData.getCountryCode())) {
        return this.formatCommonNational(pphoneNumberData);
      } else {
        return this.formatCommonInternational(pphoneNumberData);
      }
    }
docs: format phone number in common format.
  
  @param pphoneNumberData phone number to format
  @param pcountryData country data
  @return formated phone number as String