private CurrentTenant currentTenant;
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
if (bean instanceof CurrentTenantAware) {
CurrentTenantAware currentTenantAwareBean = (CurrentTenantAware) bean;
currentTenantAwareBean.setCurrentTenant(currentTenant);
}
return bean;
}