Fix bug in commit cc00c87: save TTL in ticket
Add javadoc