class ThingHelper {

    public static void addChannelsToThing(Thing thing, Collection<Channel> channels) {
        Collection<Channel> mutableChannels = thing.getChannels();
        ensureUniqueChannels(mutableChannels, channels);
        for (Channel channel : channels) {
            ((ThingImpl) thing).addChannel(channel);
        }
    }

}