public class TagsDS extends RestDataSource {

	private static TagsDS instance = null;

	public static TagsDS getInstance() {
		if (instance == null) {

			instance = new TagsDS("tagsDS");

		}
		return instance;
	}

	public TagsDS(String identifier) {
		setID(identifier);
		setDataFormat(DSDataFormat.XML);
		DataSourceTextField tagValField = new DataSourceTextField("tags",
				"Tags");
		tagValField.setValueXPath("self::node()");
		tagValField.setPrimaryKey(true);
		
		setFields(tagValField);
	}
}
