int cloudFoundryErrorCode = CloudUtil.parse(Integer.class, map.get("code"));
if (cloudFoundryErrorCode >= 0) {
switch (cloudFoundryErrorCode) {
case StagingErrorException.ERROR_CODE:
cloudFoundryException = new StagingErrorException(
statusCode, statusText);
break;
case NotFinishedStagingException.ERROR_CODE:
cloudFoundryException = new NotFinishedStagingException(
statusCode, statusText);