Genrate metadata.xml, path as parameter, add comments