public static void removeSubConfigAttributeDefaultValues(String serviceName,Set sunServiceID,String realm,String subConfigName,String attributeName,Set defaultValues){
  String classMethod="UpgradeUtils:removeSubConfigAttributeDefaultValues : ";
  try {
    ServiceConfigManager scm=getServiceConfigManager(serviceName);
    ServiceConfig sc=scm.getOrganizationConfig(realm,null);
    ServiceConfig subConfig=sc.getSubConfig(subConfigName);
    String serviceID=getSunServiceID(subConfig);
    if (debug.messageEnabled()) {
      debug.message(classMethod + "sunServiceID :" + sunServiceID);
      debug.message(classMethod + "serviceID :" + serviceID);
      debug.message(classMethod + "subConfigName :" + subConfigName);
      debug.message(classMethod + "Attribute Name :" + attributeName);
      debug.message(classMethod + "Default Values :" + defaultValues);
    }
    if (sunServiceID.contains(serviceID)) {
      Set valSet=getExistingValues(subConfig,attributeName,defaultValues);
      if (debug.messageEnabled()) {
        debug.message(classMethod + "Values to be removed" + valSet);
      }
      subConfig.removeAttributeValues(attributeName,valSet);
    }
  }
 catch (  SSOException ssoe) {
    debug.error(classMethod + "Invalid SSOToken  : ",ssoe);
  }
catch (  SMSException sme) {
    debug.error(classMethod + "Error remove default values : ",sme);
  }
}

public static void removeSubConfigAttributeDefaultValues ( String serviceName , Set sunServiceID , String realm , String subConfigName , String attributeName , Set defaultValues ) { String classMethod = "UpgradeUtils:removeSubConfigAttributeDefaultValues : " ; try { ServiceConfigManager scm = getServiceConfigManager ( serviceName ) ; ServiceConfig sc = scm . getOrganizationConfig ( realm , null ) ; ServiceConfig subConfig = sc . getSubConfig ( subConfigName ) ; String serviceID = getSunServiceID ( subConfig ) ; if ( debug . messageEnabled ( ) ) { debug . message ( classMethod + "sunServiceID :" + sunServiceID ) ; debug . message ( classMethod + "serviceID :" + serviceID ) ; debug . message ( classMethod + "subConfigName :" + subConfigName ) ; debug . message ( classMethod + "Attribute Name :" + attributeName ) ; debug . message ( classMethod + "Default Values :" + defaultValues ) ; } if ( sunServiceID . contains ( serviceID ) ) { Set valSet = getExistingValues ( subConfig , attributeName , defaultValues ) ; if ( debug . messageEnabled ( ) ) { debug . message ( classMethod + "Values to be removed" + valSet ) ; } subConfig . removeAttributeValues ( attributeName , valSet ) ; } } catch ( SSOException ssoe ) { debug . error ( classMethod + "Invalid SSOToken  : " , ssoe ) ; } catch ( SMSException sme ) { debug . error ( classMethod + "Error remove default values : " , sme ) ; } }
removes attributes default values from service subconfiguration .
