public HistorySessionsBinding() {
super("history-sessions");
}
public Object parse(Element element, Parse parse, Parser parser) {
HistorySessionDescriptor historySessionsDescriptor = (HistorySessionDescriptor) parse.contextMapGet(KEY_HISTORY_SESSIONS_DESCRIPTOR);
if (historySessionsDescriptor==null) {
historySessionsDescriptor = new HistorySessionDescriptor();
parse.contextMapPut(KEY_HISTORY_SESSIONS_DESCRIPTOR, historySessionsDescriptor);
}
CollectionDescriptor listDescriptor = (CollectionDescriptor) LIST_BINDING.parse(element, parse, parser);
historySessionsDescriptor.add(listDescriptor);
return historySessionsDescriptor;
}