*/
public static CallerContext createCaller(int throttletype, String id) throws ThrottleException {
if (ThrottleConstants.IP_BASE == throttletype) {
return new IPBaseCallerContext(id);
} else if (ThrottleConstants.DOMAIN_BASE == throttletype) {
return new DomainBaseCallerContext(id);
} else {
throw new ThrottleException("Unknown throttle type");
}
}