HomeArchiveType casting in java with example pdf