*/
@Override
protected void buildActions(final List<String> list) {
super.buildActions(list);
User user = User.get();
Pet pet = (Pet) entity;
if (user != null) {
if (!user.hasPet()) {
list.add(ActionType.OWN.getRepresentation());
} else if ((pet != null) && (user.getPetID() == pet.getID().getObjectID())) {
list.add(ActionType.LEAVE_PET.getRepresentation());
}
}
}