public static void removeAttributeChoiceValues(String serviceName,String schemaType,String attributeName,Set choiceValues,String subSchema) throws UpgradeException {
  try {
    ServiceSchema ss=getServiceSchema(serviceName,subSchema,schemaType);
    AttributeSchema attrSchema=ss.getAttributeSchema(attributeName);
    for (Iterator i=choiceValues.iterator(); i.hasNext(); ) {
      String choiceValue=(String)i.next();
      attrSchema.removeChoiceValue(choiceValue);
    }
  }
 catch (  SSOException ssoe) {
    throw new UpgradeException("Invalid SSOToken");
  }
catch (  SMSException sme) {
    throw new UpgradeException("Error removing attribute choice vals");
  }
}

public static void removeAttributeChoiceValues ( String serviceName , String schemaType , String attributeName , Set choiceValues , String subSchema ) throws UpgradeException { try { ServiceSchema ss = getServiceSchema ( serviceName , subSchema , schemaType ) ; AttributeSchema attrSchema = ss . getAttributeSchema ( attributeName ) ; for ( Iterator i = choiceValues . iterator ( ) ; i . hasNext ( ) ; ) { String choiceValue = ( String ) i . next ( ) ; attrSchema . removeChoiceValue ( choiceValue ) ; } } catch ( SSOException ssoe ) { throw new UpgradeException ( "Invalid SSOToken" ) ; } catch ( SMSException sme ) { throw new UpgradeException ( "Error removing attribute choice vals" ) ; } }
removes choice values from attribute schema .
