Updated samples to conform to latest changes in Core and Spring modules

Signed-off-by: Anuj kumar <anuj.gandharv@gmail.com>