code: public static StoreAccessException handleException(Exception re) {
      if(re instanceof StorePassThroughException) {
        Throwable cause = re.getCause();
        if(cause instanceof RuntimeException) {
          throw (RuntimeException) cause;
        } else {
          return new StoreAccessException(cause);
        }
      } else {
        return new StoreAccessException(re);
      }
    }
docs: Helper method for handling runtime exceptions.
  <p>
  Returns most as {@link StoreAccessException} except for {@code StorePassThroughException}.
  In which case if its cause is a {@link RuntimeException} it is thrown and if not it is returned
  wrapped in a {@code StoreAccessException}.
  
  @param re the exception to handler
  @return StoreAccessException to be thrown
  @throws RuntimeException if {@code re} is a {@code StorePassThroughException} containing a {@code RuntimeException}