public boolean validateServiceAttributes(String token,String validatorClass,Set values) throws SMSException, SSOException, RemoteException {
  initialize();
  if (debug.messageEnabled()) {
    debug.message("SMSJAXRPCObjectImpl::validateServiceAttributes: " + validatorClass + " Values: "+ values);
  }
  try {
    Class clazz=Class.forName(validatorClass);
    ServiceAttributeValidator v=(ServiceAttributeValidator)clazz.newInstance();
    return v.validate(values);
  }
 catch (  InstantiationException ex) {
    throw new SMSException("sms-validator_cannot_instantiate_class");
  }
catch (  IllegalAccessException ex) {
    throw new SMSException("sms-validator_cannot_instantiate_class");
  }
catch (  ClassNotFoundException ex) {
    throw new SMSException("sms-validator_cannot_instantiate_class");
  }
}

public boolean validateServiceAttributes ( String token , String validatorClass , Set values ) throws SMSException , SSOException , RemoteException { initialize ( ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "SMSJAXRPCObjectImpl::validateServiceAttributes: " + validatorClass + " Values: " + values ) ; } try { Class clazz = Class . forName ( validatorClass ) ; ServiceAttributeValidator v = ( ServiceAttributeValidator ) clazz . newInstance ( ) ; return v . validate ( values ) ; } catch ( InstantiationException ex ) { throw new SMSException ( "sms-validator_cannot_instantiate_class" ) ; } catch ( IllegalAccessException ex ) { throw new SMSException ( "sms-validator_cannot_instantiate_class" ) ; } catch ( ClassNotFoundException ex ) { throw new SMSException ( "sms-validator_cannot_instantiate_class" ) ; } }
validates service configuration attributes .
