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 > Adding the Java profile package to a model (Java code)
  
Adding the Java profile package to a model (Java code)
* 
If you want a complete and documented Java profile in your model, you must add the supplied export file to your Model.
To add the Java profile to a model, you require Repository Write access permissions to the Model's Database.
If you reverse engineer Java code to a model that does not contain the Java profile, the Reverser creates a Java Profile in the Model; however, the Java profile it creates may not be complete:
The profile may contain only the Stereotypes and Tag Definitions required for the code you reverse engineered
Each Stereotype and Tag Definition of the Java Profile package will not include a description of its purpose.
If the Reverser has created a Java profile in your Model and you want to update it so that it is complete and includes the Stereotype and Tag Definition descriptions, see Updating the Java profile package in a model (Java code).
* 
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 add the Java profile package to a model:
1. From Modeler, open the Model to which you want to add the Java Profile package.
2. On the Tools menu, click Add Profile.
3. Select the Java entry, and then click OK.
The Java profile package is created in the Model as a protected Package, as indicated by the gray icon.
* 
The time taken to reverse engineer code will be reduced if you have write access to the Model and each Package in that Model, and in each case the Model or Package is not protected.