@Override
    public void writeExternal(ObjectOutput out) throws IOException {
        ExternalizableUtil.getInstance().writeSafeUTF(out, username);
        ExternalizableUtil.getInstance().writeLong(out, startTime != null ? startTime.getTime() : -1);
        ExternalizableUtil.getInstance().writeLong(out, endTime != null ? endTime.getTime() : -1);
    }
Sets the end time for when the account will be reenabled, or null if manual reenable required.

@param endTime Date when the disabled status will end, or null for forever.
xmppserver/src/main/java/org/jivesoftware/openfire/lockout/LockOutFlag.java