code: private static License createLicenseObject(SpdxListedLicense spdxListedLicense) {
          final License license = new License();
          license.setId(spdxListedLicense.getLicenseId());
          license.setName(spdxListedLicense.getName());
          if (spdxListedLicense.getSeeAlso() != null && spdxListedLicense.getSeeAlso().length > 0) {
              license.setUrl(spdxListedLicense.getSeeAlso()[0]);
          }
          if (spdxListedLicense.getLicenseText() != null) {
              final LicenseText text = new LicenseText();
              text.setContentType("plain/text");
              text.setEncoding("base64");
              text.setText(Base64.getEncoder().encodeToString(spdxListedLicense.getLicenseText().getBytes()));
              license.setLicenseText(text);
          }
          return license;
      }
docs: Creates a License object from the specified SpdxListedLicense object.
  @param spdxListedLicense the object to convert
  @return a CycloneDX License object