Handle datasource type for runtime