public DatabaseAccessException(Throwable t) {
    super(t);

    try {
      this.configFile = String.valueOf(SessionFactoryHolder.getConfigFile());
    } catch (Exception e) {
    }

    try {
      this.sessionFactory = String.valueOf(SessionFactoryHolder.getSessionFactoryAsString());
    } catch (Exception e) {
    }
  }
 @Init
 @Logged
 @ValidateAfter
 public void init() {
   InjectorBean injectorBean = FacesUtils.getManagedBean("InjectorBean");
   sessionProvider = injectorBean.getInjector().getInstance(SessionProvider.class);
   PATH_TO_DB = SessionFactoryHolder.getDatabasePathWithoutPrefix();
 }