//jsonResponse = jsonResponse; //URL.decodeComponent(jsonResponse);
zResponse = getResponseJS(jsonResponse);
}catch(JavaScriptException e)
{
Log.error("Response: " + e);
throw new ServiceException(e.getMessage());
}
if(zResponse.isException())
{
if(zResponse.getExceptionClass().equals("com.zaranux.client.api.exceptions.UnauthorizedAccessException"))
{
throw new com.zaranux.client.api.exceptions.UnauthorizedAccessException(zResponse.getExceptionMessage());
}if(zResponse.getExceptionClass().equals("com.zaranux.client.api.exceptions.ResourceNotFound"))
{
throw new com.zaranux.client.api.exceptions.ResourceNotFound();
}else
{
throw new ServiceException(zResponse.getExceptionMessage());
}
}
Log.debug("Response: " + zResponse);