CSTL-1130 MapContext use DTO as argument for  rest api to fix serialization issue.