moved to using built-in map for sample extensions

Change-Id: I863fcfda8d983705133a7aab63602c129af64ddc