inputStream = connection.getInputStream();
<BUG>String response = toString(inputStream);
result = ServiceUtil.returnSuccess(response);</BUG>
} else {
inputStream = connection.getErrorStream();
<BUG>result = ServiceUtil.returnFailure(toString(inputStream));
}</BUG>
return result;
}
private static Map checkOrders(GenericDelegator delegator, LocalDispatcher dispatcher, Locale locale, Map context, String response) {

inputStream = connection.getInputStream();
response = toString(inputStream);
result = ServiceUtil.returnSuccess(response);
} else {
inputStream = connection.getErrorStream();
result = ServiceUtil.returnFailure(toString(inputStream));
}
if (Debug.verboseOn()) {
Debug.logVerbose("Response of " + callName + " From eBay:\n" + response, module);
}
return result;
}
private static Map checkOrders(GenericDelegator delegator, LocalDispatcher dispatcher, Locale locale, Map context, String response) {
