logger.error("Response with status {} returned.", responseStatus);
// Process exception response
switch ( responseStatus ) {
case 409:
throw new RemoteTaskException(exceptionResponse.getMessage() + ":\n" + exceptionResponse.getStackTrace());
default:
if( exceptionResponse != null ) {
throw new RemoteApiException(exceptionResponse.getMessage() + ":\n" + exceptionResponse.getStackTrace());
} else {
throw new RemoteCommunicationException("Unable to communicate with remote API via URL "