java reconstruction