}
private URI getParentId(XmlObject plan) throws DeploymentException {
if (plan instanceof GerApplicationDocument) {
GerApplicationDocument applicationDoc = (GerApplicationDocument) plan;
GerApplicationType application = applicationDoc.getApplication();
if (application.isSetParentId()) {
try {
return new URI(application.getParentId());
} catch (URISyntaxException e) {
throw new DeploymentException("Invalid parentId " + application.getParentId(), e);
}
} else {
return null;
}
}