extract utility to a separate class
MenuXmlCreator
apply the same for preferences