Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Java code > Reverse engineering legacy Java code > Modeling Java code in modeler > Updating the Java profile package in a model (Java code)
  
Updating the Java profile package in a model (Java code)
If the Reverser has created the Java profile in your Model, the profile may contain only the Stereotypes and Tag Definitions required for the code you reverse engineered, and each Stereotype and Tag Definition of the Java Profile package will not include a description of its purpose. You can update the Java profile in your Model so that it is complete and includes the Stereotype and Tag Definition descriptions.
* 
To update the Java profile to a model, you require Repository Write access permissions to the Model's Database.
Do not make changes to the Java profile. Any changes you make will be lost when the profile is updated
Note that you can create Tag Definitions outside of the Java profile, and link those Tag Definitions to Stereotypes in the Java profile. When the Java profile is updated, the links will not be broken.
Do not create copies of the Java profile within a model, or create copies of the Java profile through XMI Import/Export. The copies of the Java profile will not work correctly and you will not be able to update the copies through the Update All Profiles command.
To update the Java Profile package (and other PTC profile packages) in a model:
1. From Modeler, right-click the Java Profile package, and then click Update All Profiles.
2. From the dialog, select the check boxes to ensure that you have a version of the model prior to profile updates and any migration of data, and a version of the model after the profile updates and any migration of data are complete.
3. Click OK.