Working with last will and testament in Java