/** * Add repeated sections. * * @param repeater * the repeater * @param extraSections * the extra sections */ protected void addRepeatedSections(RComponent repeater, List<RComponent> extraSections) { RemoteAddRepeatedCommand addRepeatedCommand = new RemoteAddRepeatedCommand(); addRepeatedCommand.setTargetPeerGuid(repeater.getGuid()); addRepeatedCommand.setNewSections(extraSections.toArray(new RComponent[extraSections.size()])); getRemoteCommandHandler().registerCommand(addRepeatedCommand); }