format the class and add a instance to automation.xml