Re #8069. Moving implementation from header to source.
Re #8069. Changing log message.
Merge branch 'feature/8069_setsamplematerial_log' into develop