Imported required Guava package and replaced deprecated methods.

Change-Id: I8ce448fb0507ef57a46b11f90b2f46b9c7741a99