in shiro-basic/src/main/java/org/apache/struts2/shiro/example/action/LogoutAction.java [8:16]
public String execute()
{
if (isAuthenticated())
{
getShiroUser().logout(); // isAuthenticated = true -> getShiroUser() != null
}
return SUCCESS;
}