Change method to generate masterdoc entitiy (enum ok)