Return object in message service