code: private static String getAliasName(String alias, String bundleLocation) {
          String newAlias = alias;
  
          if (alias != null && !alias.isEmpty()) {
              try {
                  if (bundleLocation != null && !bundleLocation.isEmpty()) {
                      if (bundleLocation.startsWith(XMLConfigConstants.BUNDLE_LOC_KERNEL_TAG)) {
                          // nothing to do. The alias is returned.
                      } else if (bundleLocation.startsWith(XMLConfigConstants.BUNDLE_LOC_FEATURE_TAG)) {
                          // Check for the presence of a product extension location.
                          int index = bundleLocation.indexOf(XMLConfigConstants.BUNDLE_LOC_PROD_EXT_TAG);
                          if (index != -1) {
                              index += XMLConfigConstants.BUNDLE_LOC_PROD_EXT_TAG.length();
                              int endIndex = bundleLocation.indexOf(":", index);
                              String productName = bundleLocation.substring(index, endIndex);
                              newAlias = productName + "_" + alias;
                          }
                      } else if (bundleLocation.startsWith(XMLConfigConstants.BUNDLE_LOC_CONNECTOR_TAG)) {
                          // nothing to do. The alias is returned.
                      } else {
                          // Unknown location. Ignore the alias. If bundles are installed through fileInstall,
                          // bundle resolution should happen through the pid or factoryPid.
                          newAlias = null;
                      }
                  }
              } catch (Throwable t) {
                  // An exception here would be bad. Need an ffdc.
              }
          }
  
          return newAlias;
      }
docs: Prefixes the alias with the product extension name if there is a product extension
  associated to this OCD.
  
  @param alias The alias name to process.
  @param bundleLocation bundle location to analyze to provide prefix for the alias
  @return The new alias possibly including a prefix based on the bundle location.