*/
public CallRestrictions getCallRestrictions(WebServiceCall ws) throws IllegalStateException {
Long delay = getCallDelay();
StorageSizeUnit sizeUnit = (StorageSizeUnit) sizeUnitCombo.getSelectedItem();
Long maxDataToPost = getMaxDataToPost(sizeUnit);
CallRestrictions r = null;
if (delay != null || maxDataToPost != null) {
r = new CallRestrictions(ws);
if (delay != null) {
r.setMinimumCallDelayInMilliSecs(delay.longValue());
}
if (maxDataToPost != null) {
r.setMaximumSizeInBytes(maxDataToPost.longValue());
r.setMaximumSizeUiUnit(sizeUnit);
}
}
return r;
}