Add API to covert ODocument to HashMap