Implemented hashCode() and equals() methods on all Resource pojos