@Override
    public String set(int index, String element) {
        if ((!isLifecycleInUse) && (!isFinalized)) {
            return super.set(index, element);
        } else {
            throw new IllegalStateException(DocDefaults.LIFECYCLE_IN_USE_OR_FINALIZED);
        }
    }