Use the geoserver context object to get the store type.