Bean methods must be public.