private void registerResources(Environment environment){

        final Map<String, Object> beansWithAnnotation = applicationContext.getBeansWithAnnotation(Path.class);

        for (String beanName : beansWithAnnotation.keySet()) {

            Object resource = beansWithAnnotation.get(beanName);
            environment.jersey().register(resource);
            logger.info("Registering resource : " + resource.getClass().getName());
        }
    }