add check ocm in restful mapper