controlled nullpointer to refresh a bean