* @param type - Background type of the Background Item to parse.
* @return items.
*/
private List<BackgroundItem> parseItems(final String toParse, final BackgroundItemType type)
{
CollectionFormat formatter = new CollectionFormat();
List<BackgroundItem> backgroundItems = new ArrayList<BackgroundItem>();
Collection<String> elements = formatter.parse(toParse);
for (String token : elements)
{
backgroundItems.add(new BackgroundItem(token, type));
}
return backgroundItems;