@SuppressWarnings("unchecked")
    public void registerMonitors(final DiagnosisMonitor<?> listener,
                             final Class<?>... all) {
        if (listener == null || all == null || all.length == 0) return;

        // Stores all items we received so far
        for (final Class<?> c : all) {
            final Class<? extends DiagnosisChannelID<Serializable>> cc = (Class<? extends DiagnosisChannelID<Serializable>>) c;
            this.object.registerMonitor(cc, (DiagnosisMonitor<Serializable>) listener);
        }
    }