Java code added for backup