code: public boolean toBeUninstalled(String name, List<UninstallAsset> list) {
          for (UninstallAsset asset : list) {
              String featureName = InstallUtils.getShortName(asset.getProvisioningFeatureDefinition());
              if (asset.getName().equals(name) ||
                  (featureName != null && featureName.equals(name))) {
                  InstallLogUtils.getInstallLogger().log(Level.FINEST, "The dependent feature is specified to be uninstalled : " + featureName);
                  return true;
              }
          }
          return false;
      }
docs: Verify the name is on the uninstall list
  
  @param name symbolic name of the feature
  @param list list of the uninstalling features
  @return true if the feature is going to be uninstalled, otherwise, return false.