private GeteBayDetailsResponseType makeApiCall(DetailNameCodeType[] detailNames, SiteCodeType site) throws SdkException, Exception {
SiteCodeType savedSite = _site;
if(site != null) {
_apiContext.setSite(site);
}
GeteBayDetailsCall api = new GeteBayDetailsCall(_apiContext);
DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] {DetailLevelCodeType.RETURN_ALL};
api.setDetailLevel(detailLevels);
if(detailNames != null) {
api.setDetailName(detailNames);
}
api.geteBayDetails();
_apiContext.setSite(savedSite);
return api.getReturnedeBayDetails();
}