@UnitOfWork
    @Override
    public void run(T configuration, Environment environment) throws Exception {
    """
	{@inheritDoc}
	In addition adds exception mapper.
	
	@param configuration
	@param environment
	@throws Exception
    """
        TokenFactory.authenticator = new TokenAuthenticator(
                GuiceBundle.getInjector().getInstance(UserDao.class),
                GuiceBundle.getInjector().getInstance(ServiceDao.class),
                GuiceBundle.getInjector().getInstance(RoleDao.class),
                GuiceBundle.getInjector().getInstance(PermissionDao.class),
                GuiceBundle.getInjector().getInstance(RoleGroupDao.class));

        TokenFactory.tokenKey = configuration.getAuth().getTokenKey();

        environment.jersey().register(RobeExceptionMapper.class);
        environment.jersey().register(new ExceptionMapperBinder(true));

        environment.jersey().register(new SearchFactoryProvider.Binder());
        environment.jersey().register(MultiPartFeature.class);

        if (configuration.getRecaptcha() != null) {
            new ReCaptchaValidation(configuration.getRecaptcha());
        }

        JobPersister jobPersister = new JobPersister(QuartzBundle.JOBS);
    }
@UnitOfWork
    @Override
    public void run(T configuration, Environment environment) throws Exception {
        TokenFactory.authenticator = new TokenAuthenticator(
                GuiceBundle.getInjector().getInstance(UserDao.class),
                GuiceBundle.getInjector().getInstance(ServiceDao.class),
                GuiceBundle.getInjector().getInstance(RoleDao.class),
                GuiceBundle.getInjector().getInstance(PermissionDao.class),
                GuiceBundle.getInjector().getInstance(RoleGroupDao.class));

        TokenFactory.tokenKey = configuration.getAuth().getTokenKey();

        environment.jersey().register(RobeExceptionMapper.class);
        environment.jersey().register(new ExceptionMapperBinder(true));

        environment.jersey().register(new SearchFactoryProvider.Binder());
        environment.jersey().register(MultiPartFeature.class);

        if (configuration.getRecaptcha() != null) {
            new ReCaptchaValidation(configuration.getRecaptcha());
        }

        JobPersister jobPersister = new JobPersister(QuartzBundle.JOBS);
    }
@ UnitOfWork @ Override public void run ( T configuration , Environment environment ) throws Exception { TokenFactory . authenticator = new TokenAuthenticator ( GuiceBundle . getInjector ( ) . getInstance ( UserDao . class ) , GuiceBundle . getInjector ( ) . getInstance ( ServiceDao . class ) , GuiceBundle . getInjector ( ) . getInstance ( RoleDao . class ) , GuiceBundle . getInjector ( ) . getInstance ( PermissionDao . class ) , GuiceBundle . getInjector ( ) . getInstance ( RoleGroupDao . class ) ) ; TokenFactory . tokenKey = configuration . getAuth ( ) . getTokenKey ( ) ; environment . jersey ( ) . register ( RobeExceptionMapper . class ) ; environment . jersey ( ) . register ( new ExceptionMapperBinder ( true ) ) ; environment . jersey ( ) . register ( new SearchFactoryProvider . Binder ( ) ) ; environment . jersey ( ) . register ( MultiPartFeature . class ) ; if ( configuration . getRecaptcha ( ) != null ) { new ReCaptchaValidation ( configuration . getRecaptcha ( ) ) ; } JobPersister jobPersister = new JobPersister ( QuartzBundle . JOBS ) ; }
{@inheritDoc}
In addition adds exception mapper.

@param configuration
@param environment
@throws Exception
{ @inheritDoc } In addition adds exception mapper .