/* 76 */ if (name != null)
/* */ {
/* 78 */ String domain = name.getCanonicalName().trim();
/* 79 */ if (domain.length() != 0)
/* */ {
/* 81 */ ClassLoaderMetaData metaData = new ClassLoaderMetaData();
/* 82 */ metaData.setName(unit.getName());
/* 83 */ metaData.setDomain(domain);
/* 84 */ metaData.setExportAll(ExportAll.NON_EMPTY);
/* 85 */ metaData.setImportAll(true);
/* 86 */ metaData.setVersion(Version.DEFAULT_VERSION);
/* */
/* 88 */ Properties props = new Properties();
/* 89 */ String config = loaderConfig.repositoryConfig;
/* */ try
/* */ {
/* 92 */ if (config != null)
/* */ {
/* 94 */ ByteArrayInputStream bais = new ByteArrayInputStream(config.getBytes());
/* 95 */ props.load(bais);
/* */ }
/* */ }
/* */ catch (Exception e)
/* */ {
/* 100 */ throw DeploymentException.rethrowAsDeploymentException("Error parsing repository config " + config, e);
/* */ }
/* 102 */ String java2ParentDelegation = props.getProperty("java2ParentDelegation");
/* 103 */ if (java2ParentDelegation == null)
/* */ {
/* 106 */ java2ParentDelegation = props.getProperty("java2ParentDelegaton", "false");
/* */ }
/* 108 */ boolean useParentFirst = Boolean.valueOf(java2ParentDelegation).booleanValue();
/* 109 */ metaData.setJ2seClassLoadingCompliance(useParentFirst);
/* */
/* 111 */ unit.addAttachment(ClassLoaderMetaData.class, metaData);
/* */ }
/* */ }
/* */ }