added merge policy for mhero as stored function. uses merge adapter