@Override protected void configure() { LOGGER.debug("installing module: {}", AuthorizationModule.class.getSimpleName()); install(new AuthenticationModule()); install(new EventLogModule()); install(new CassandraRepositoryModule()); Properties properties = create(PROPERTY_NAME, AuthorizationModule.class); String authorizationClassName = getProperty("authorization.class.name", properties, "com.intuit.wasabi.authorization.impl.DefaultAuthorization"); try { @SuppressWarnings("unchecked") Class<Authorization> authorizationClass = (Class<Authorization>) forName(authorizationClassName); bind(Authorization.class).to(authorizationClass).in(SINGLETON); } catch (ClassNotFoundException e) { throw new AuthenticationException("unable to find authorization class: " + authorizationClassName, e); } LOGGER.debug("installed module: {}", AuthorizationModule.class.getSimpleName()); } }