class SolonContextAware implements ContextAware {

    @Override
    public <T> T getBean(String name) {
        try {
            return Solon.context().getBean(name);
        } catch (Exception e) {
            return null;
        }
    }

    @Override
    public <T> T getBean(Class<T> clazz) {
        try {
            return Solon.context().getBean(clazz);
        } catch (Exception e) {
            return null;
        }
    }

    private <T> T getBean(String beanName, Class<T> clazz) {<FILL_FUNCTION_BODY>}

    @Override
    public <T> T registerBean(String beanName, Class<T> c) {
        BeanWrap beanWrap = new BeanWrap(Solon.context(), c, null, beanName);
        Solon.context().putWrap(beanName, beanWrap);

        return beanWrap.get();
    }

    @Override
    public <T> T registerBean(Class<T> c) {
        return registerBean(c.getName(), c);
    }

    @Override
    public <T> T registerBean(String beanName, Object bean) {
        BeanWrap beanWrap = new BeanWrap(Solon.context(), bean.getClass(), bean, beanName);
        Solon.context().putWrap(beanName, beanWrap);

        return beanWrap.get();
    }

    @Override
    public Object registerDeclWrapBean(String beanName, DeclWarpBean declWarpBean) {
        BeanWrap beanWrap = new BeanWrap(Solon.context(), declWarpBean.getClass(), declWarpBean, beanName);
        Solon.context().putWrap(beanName, beanWrap);
        return beanWrap.get();
    }

    @Override
    public <T> T registerOrGet(String beanName, Class<T> clazz) {
        T t = getBean(beanName, clazz);
        if (ObjectUtil.isNull(t)) {
            t = registerBean(beanName, clazz);
        }
        return t;
    }

    @Override
    public <T> Map<String, T> getBeansOfType(Class<T> type) {
        List<BeanWrap> wrapsOfType = Solon.context().getWrapsOfType(type);
        return CollUtil.toMap(wrapsOfType, new HashMap<String, T>(), BeanWrap::name, BeanWrap::get);
    }

    @Override
    public boolean hasBean(String beanName) {
        return Solon.context().hasWrap(beanName);
    }

    @Override
    public int priority() {
        return 1;
    }

}

        try {
            return Solon.context().getBean(beanName);
        } catch (Exception e) {
            return null;
        }
    
<no_super_class>