/** Save the metadata for this task list.
* @param newName the name to use when saving this task list.
* @param data the DataRepository
*/
protected String saveMetadata(String newName, DataRepository data) {
SimpleData md = null;
if (newName != null && metaData != null && !metaData.isEmpty()) {
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
metaData.store(out, "task list metadata");
md = StringData.create(out.toString("ISO-8859-1"));