*/
public static ThrottleConfiguration createThrottleConfiguration(int throttletype) throws ThrottleException {
if (ThrottleConstants.IP_BASE == throttletype) {
return new IPBaseThrottleConfiguration();
} else if (ThrottleConstants.DOMAIN_BASE == throttletype) {
return new DomainBaseThrottleConfiguration();
} else {
throw new ThrottleException("Unknown throttle type");
}
}