// This makes the assumption that all uploads go to getCurrentSim(), to avoid
// the problem of HttpRequestState not knowing anything about simulators
CapsHttpClient upload = new CapsHttpClient(uploadURL);
// upload.OnComplete += UploadInventoryAssetResponse;
upload.addRequestCompleteObserver(new EventObserver<CapsHttpRequestCompletedArg>()
{
@Override
public void handleEvent(Observable o,
CapsHttpRequestCompletedArg e) {
UploadInventoryAssetResponse(e.getClient(), e.getResult(), e.getError());