public void setFinalStatusIndex(int finalStatusIndex) {
        if ((!isLifecycleInUse) && (!isFinalized)) {
            this.finalStatusIndex = finalStatusIndex;
        } else {
            throw new IllegalStateException(DocDefaults.LIFECYCLE_IN_USE_OR_FINALIZED);
        }
    }