@SuppressWarnings( "unchecked" )
    public synchronized void addConsumer( MessageConsumer<? extends Serializable> consumer ) {
        consumers.add((MessageConsumer<Serializable>)consumer);
    }
@ SuppressWarnings ( "unchecked" ) public synchronized void addConsumer ( MessageConsumer < ? extends Serializable > consumer ) { consumers . add ( ( MessageConsumer < Serializable > ) consumer ) ; }
Adds a new message consumer to this service.

@param consumer a {@link MessageConsumer} instance.