To update metadata before clearing and loading security information:
Extract all application metadata elements in the application.
Make changes to the security class information of the metadata elements as necessary.