code: public Messageadapter merge(MergeableMetadata<?> jmd) throws Exception
     {
        if (jmd instanceof MessageAdapterImpl)
        {
           MessageAdapterImpl input = (MessageAdapterImpl) jmd;
  
           String newId = this.id == null ? input.id : this.id;
  
           List<MessageListener> newMessagelistener = MergeUtil.mergeList(this.messagelisteners,
                 input.messagelisteners);
           return new MessageAdapterImpl(newMessagelistener, newId);
        }
        else
        {
           return this;
        }
     }
docs: {@inheritDoc}