Adapter layer between sampleManager and legacy api.