/** * Validates that given status has a status code. * * @param status status to validate * * @throws ValidationException thrown if the status does not have a status code */ protected void validateStatusCode(Status status) throws ValidationException { if (status.getStatusCode() == null) { throw new ValidationException("No StatusCode element present"); } } }