ConfigurationType configType = ((ConfigurationDocument) plan).getConfiguration();
URI configID;
try {
configID = new URI(configType.getConfigId());
} catch (URISyntaxException e) {
throw new DeploymentException("Invalid configId " + configType.getConfigId(), e);
}
URI parentID;
if (configType.isSetParentId()) {
try {
parentID = new URI(configType.getParentId());
} catch (URISyntaxException e) {
throw new DeploymentException("Invalid parentId " + configType.getParentId(), e);
}
} else {
parentID = null;
}
DeploymentContext context = null;
try {
context = new DeploymentContext(os, configID, parentID, kernel);
} catch (MalformedObjectNameException e) {
throw new DeploymentException(e);
}
addIncludes(context, configType);
addDependencies(context, configType.getDependencyArray());
ClassLoader cl = context.getClassLoader(repository);
GbeanType[] gbeans = configType.getGbeanArray();