}
public void buildNaming(XmlObject specDD, XmlObject plan, Configuration localConfiguration, Configuration remoteConfiguration, Module module, Map componentContext) throws DeploymentException {
XmlObject[] envEntriesUntyped = convert(specDD.selectChildren(envEntryQNameSet), J2EE_CONVERTER, EnvEntryType.type);
for (int i = 0; i < envEntriesUntyped.length; i++) {
EnvEntryType envEntry = (EnvEntryType) envEntriesUntyped[i];
String name = envEntry.getEnvEntryName().getStringValue().trim();
String type = envEntry.getEnvEntryType().getStringValue().trim();
String text = envEntry.getEnvEntryValue().getStringValue().trim();
try {
Object value;
if (text == null) {
if ("org.apache.geronimo.kernel.Kernel".equals(type)) {
value = new KernelReference();