infinispan/infinispan — pull request #979 by galderz (2012-02-27 12:41:26+00:00)
Title: ISPN-1887 Fixed buggy withCacheManager method and simplify it

https://issues.jboss.org/browse/ISPN-1887

Previous withCacheManager() was buggy and would leave cache managed open in the even of an exception. This fix improves on the pattern suggested and fixes this issue.