== Java model to KDM model transformation  ==
The goal of the "Java to KDM transformation" discoverer is to get a KDM model from a Java model.
It is useful when the only available information on a java source code is contained in a Java model. Even without the source code it is then possible to get a KDM representation.

''Quality disclaimer: this discoverer is provided without any guarantee: it was only tested on a small number of projects of relatively small sizes. It may not be suitable for production environments.''

=== User Manual ===
A prerequisite is a Java model. Please refer to the [../java_discoverer/user.html  Java Discoverer] user manual. 

[[Image:../../img/MoDisco_DiscoverKDMFromJavaModel_Menu.png|frame|center|Discovering a KDM code model from a Java model]]


Once launched, a progress dialog will appear as soon as the operation begins. Depending on the size of your java model, the transformation might take some time to complete:

[[Image:../../img/MoDisco_discoverer_org.eclipse.modisco.java.discoverer.javaToKDM_in_progress.png|frame|center|Progress bar during java model transformation]]

At the end of the process, the newly created model files are added to the root of your project:

[[Image:../../img/MoDisco_test4KDMXMI.png|frame|center|KDM model]]

And the model is automatically opened in the default model browser if you selected "Open model in editor after discovery":

[[Image:../../img/MoDisco_test4KDMXMI_ModelBrowser.png|frame|center|KDM model in the MoDisco Model Browser]]
