/* ========================================================================= *
 * Boarder                                                                   *
 * http://boarder.mikuz.org/                                                 *
 * ========================================================================= *
 * Copyright (C) 2013 Boarder                                                *
 *                                                                           *
 * Licensed under the Apache License, Version 2.0 (the "License");           *
 * you may not use this file except in compliance with the License.          *
 * You may obtain a copy of the License at                                   *
 *                                                                           *
 *     http://www.apache.org/licenses/LICENSE-2.0                            *
 *                                                                           *
 * Unless required by applicable law or agreed to in writing, software       *
 * distributed under the License is distributed on an "AS IS" BASIS,         *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
 * See the License for the specific language governing permissions and       *
 * limitations under the License.                                            *
 * ========================================================================= */

package fi.mikuz.boarder.component.soundboard;

import java.util.List;

public class ImplicitSoundList {
	private GraphicalSoundList list;

	protected List<GraphicalSound> getList() {
		if (list == null) {
			list = new GraphicalSoundList();
		}
		return list;
	}

	protected void setList(List<GraphicalSound> list) {
		this.list = (GraphicalSoundList) list;
	}
}

@@ -1510,16 +1510,758 @@
 .List;%0D%0A
+import fi.mikuz.boarder.util.XStreamUtil;%0D%0A%0D%0A/**%0D%0A * XStream collection hack.%0D%0A * %3Cp%3E%0D%0A * This collection is used in %7B@link GraphicalSoundboard%7D and declared as%0D%0A * implicit collection in %7B@link XStreamUtil%7D.%0D%0A * %3Cp%3E%0D%0A * Implicit collection class itself is ignored in serialized XML and all collection %0D%0A * items it contains are directly inserted without wrapping object.%0D%0A * I want that wrapping object so an extra intermediary object was introduced.%0D%0A * This is that extra object.%0D%0A * %3Cp%3E%0D%0A * The need to use implicit collection comes from XStreams inability to use %0D%0A * custom collections without introducing a bogus class attribute.%0D%0A * That class attribute could create serious problems with loading legacy%0D%0A * boards in the future.%0D%0A */
 %0D%0Apublic

Add lengthy explanation of the implicit collection hack.