removed context from api params and replaced XWikiDocument by
DocumentReference