Spring static ctx: by type example