RestMS adding the implementation for adding a message to a pipeline