code: public static SessionManagerConfigurationException fromThrowable(Throwable cause) {
      return (cause instanceof SessionManagerConfigurationException)
                     ? (SessionManagerConfigurationException) cause
                     : new SessionManagerConfigurationException(cause);
    }
docs: Converts a Throwable to a SessionManagerConfigurationException. If the Throwable is a
  SessionManagerConfigurationException, it will be passed through unmodified; otherwise, it will be wrapped
  in a new SessionManagerConfigurationException.
  
  @param cause the Throwable to convert
  
  @return a SessionManagerConfigurationException