some examples with apache shiro