document method in Documentservice