package net.etalia.client.domain;

import java.util.Collections;
import java.util.Map;

public class User {

	private String id;
	private String title;
	private Map<String, Object> extraData;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Map<String,Object> getExtraData() {
		if (this.extraData == null) return Collections.emptyMap();
		return Collections.unmodifiableMap(this.extraData);
	}
	@SuppressWarnings("unchecked")
	public <T> T getExtraData(String name) {
		if (extraData == null) return null;
		return (T)extraData.get(name);
	}

}

@@ -45,27 +45,23 @@
 va.util.
-Collections
+HashMap
 ;%0Aimport
@@ -179,16 +179,48 @@
 xtraData
+ = new HashMap%3CString, Object%3E()
 ;%0A%0A%09publ
@@ -466,109 +466,15 @@
 %7B%0A%09%09
-if (this.extraData == null) return Collections.emptyMap();%0A%09%09return Collections.unmodifiableMap(this.
+return 
 extr
@@ -478,17 +478,16 @@
 xtraData
-)
 ;%0A%09%7D%0A%09@S

Add extraData to User