change Resource to support ETag
clear unneccessary System.out in Resource
override hashCode() for entities to support ETag