private org . ehcache . CacheManager getEhcacheManager ( ) { try { final Field f = eh107CacheManager . getClass ( ) . getDeclaredField ( "ehCacheManager" ) ; f . setAccessible ( true ) ; return ( org . ehcache . CacheManager ) f . get ( eh107CacheManager ) ; } catch ( final IllegalAccessException e ) { throw new RuntimeException ( e ) ; } catch ( final NoSuchFieldException e ) { throw new RuntimeException ( e ) ; } }
Shiro isn t JCache compatible