*/
@Override
protected void buildActions(final List<String> list) {
super.buildActions(list);
User user = User.get();
Sheep sheep = (Sheep) entity;
if (user != null) {
if (!user.hasSheep()) {
list.add(ActionType.OWN.getRepresentation());
} else if ((sheep != null) && (user.getSheepID() == sheep.getID()
.getObjectID())) {
list.add(ActionType.LEAVE_SHEEP.getRepresentation());
}
}
}