Change the way to get container type.
Change the way to get container type.