if ( policy != null ) { try { desc.setConfigurationPolicy(ComponentConfigurationPolicy.valueOf(policy.toUpperCase())); } catch (final IllegalArgumentException iae) { iLog.addWarning("Invalid value for attribute " + COMPONENT_ATTR_POLICY + " : " + policy, this.location);
if ( component.getConfigurationPolicy() != null && component.getConfigurationPolicy() != ComponentConfigurationPolicy.OPTIONAL ) { IOUtils.addAttribute(ai, COMPONENT_ATTR_POLICY, component.getConfigurationPolicy().name().toLowerCase());