static Resource getOrCreateSubDeployment ( final String deploymentName , final DeploymentUnit parent ) { final Resource root = parent . getAttachment ( DEPLOYMENT_RESOURCE ) ; return getOrCreate ( root , PathElement . pathElement ( SUBDEPLOYMENT , deploymentName ) ) ; }
Gets or creates the a resource for the sub - deployment on the parent deployments resource .