public void removeAttribute(String attrName,String value) throws SMSException {
  Set attr=null;
  if ((attrSet == null) || ((attr=(Set)attrSet.get(attrName)) == null) || (!attr.contains(value))) {
    throw (new SMSException(LdapException.newLdapException(ResultCode.ATTRIBUTE_OR_VALUE_EXISTS,getBundleString(IUMSConstants.SMS_ATTR_OR_VAL_EXISTS)),"sms-ATTR_OR_VAL_EXISTS"));
  }
  attr.remove(value);
  attrSet.put(attrName,attr);
  if (modSet == null) {
    modSet=new HashSet();
  }
  modSet.add(new ModificationItem(DirContext.REMOVE_ATTRIBUTE,new BasicAttribute(attrName,value)));
}

public void removeAttribute ( String attrName , String value ) throws SMSException { Set attr = null ; if ( ( attrSet == null ) || ( ( attr = ( Set ) attrSet . get ( attrName ) ) == null ) || ( ! attr . contains ( value ) ) ) { throw ( new SMSException ( LdapException . newLdapException ( ResultCode . ATTRIBUTE_OR_VALUE_EXISTS , getBundleString ( IUMSConstants . SMS_ATTR_OR_VAL_EXISTS ) ) , "sms-ATTR_OR_VAL_EXISTS" ) ) ; } attr . remove ( value ) ; attrSet . put ( attrName , attr ) ; if ( modSet == null ) { modSet = new HashSet ( ) ; } modSet . add ( new ModificationItem ( DirContext . REMOVE_ATTRIBUTE , new BasicAttribute ( attrName , value ) ) ) ; }
removes the attribute value from the attribute .
