public static DeploymentUnit getRootDeploymentUnit ( DeploymentUnit deploymentUnit ) { if ( deploymentUnit . getParent ( ) == null ) { return deploymentUnit ; } return deploymentUnit . getParent ( ) ; }
Returns the parent of the given deployment unit if such a parent exists . If the given deployment unit is the parent deployment unit it is returned .