Adding getType() to Entry