WebAppDConfigRoot configRoot = (WebAppDConfigRoot) deploymentConfiguration.getDConfigBeanRoot(ddBeanRoot);
WebAppDConfigBean webApp = (WebAppDConfigBean) configRoot.getDConfigBean(ddBean);
webApp.setContextRoot(data.getContextRoot());
EnvironmentData environment = new EnvironmentData();
webApp.setEnvironment(environment);
org.apache.geronimo.deployment.service.jsr88.Artifact configId = new org.apache.geronimo.deployment.service.jsr88.Artifact();
environment.setConfigId(configId);
configId.setGroupId(data.getGroupId());
configId.setArtifactId(data.getArtifactId());
configId.setVersion(data.getVersion());
configId.setType(data.getType());
int numDependencies = data.getDependencies().size();
if (numDependencies > 0) {
org.apache.geronimo.deployment.service.jsr88.Artifact[] dependencies = new org.apache.geronimo.deployment.service.jsr88.Artifact[numDependencies];
for (int i = 0; i < numDependencies; i++) {
dependencies[i] = new org.apache.geronimo.deployment.service.jsr88.Artifact();
}
environment.setDependencies(dependencies);
for (int i = 0; i < numDependencies; i++) {
Artifact artifact = Artifact.create(((String) data.getDependencies().get(i)).trim());
org.apache.geronimo.deployment.service.jsr88.Artifact dep = dependencies[i];
dep.setArtifactId(artifact.getArtifactId());
if (artifact.getGroupId() != null) {
dep.setGroupId(artifact.getGroupId());
}
if (artifact.getType() != null) {
dep.setType(artifact.getType());
}
if (artifact.getVersion() != null) {
dep.setVersion(artifact.getVersion().toString());
}
}
}
String hiddenClassesString = data.getHiddenClasses();
if (hiddenClassesString != null && hiddenClassesString.length() > 0) {
String[] hiddenClasses = getNonEmptyStrings(hiddenClassesString.split(";"));
if (hiddenClasses.length > 0) {
environment.setHiddenClasses(hiddenClasses);
}
}
String nonOverridableClassesString = data.getNonOverridableClasses();
if (nonOverridableClassesString != null && nonOverridableClassesString.length() > 0) {
String[] nonOverridableClasses = getNonEmptyStrings(nonOverridableClassesString.split(";"));
if (nonOverridableClasses.length > 0) {
environment.setNonOverridableClasses(nonOverridableClasses);
}
}
if (data.isInverseClassLoading()) {
environment.setInverseClassLoading(true);
}
int numEjbRefs = data.getEjbRefs().size();
if (numEjbRefs > 0) {
EjbRef[] ejbRefs = new EjbRef[numEjbRefs];