Added apply method to session to get like apply on map