class ApplicationControllerSupport {

    public boolean getFinalityOf(Status status) {
        int codeSeries = status.getCode() - (status.getCode() % 100);
        switch (codeSeries) {
            case ACCEPT_SERIES:
            case PARTIAL_SERIES:
                return false;
            case ERROR_SERIES:
            case REJECT_SERIES:
            case SUCCESS_SERIES:
                return true;
            default:
                return true;
        }
    }

}