.getMetaData().getConfigurationParameterDeclarations();
// Get the name of the parameter to find in the component's parameter list
String param_name = aCPE_nvp.getName().trim();
// Extract parameter with a matching name from the parameter declaration section of the
// component's descriptor
ConfigurationParameter cparam = cpd.getConfigurationParameter(null, param_name);
if (cparam != null) {
// Retrieve component's parameter settings from the in-memory descriptor
ConfigurationParameterSettings cps = ((ResourceCreationSpecifier) aResourceSpecifier)
.getMetaData().getConfigurationParameterSettings();
// Determie if it is a multi-value parameter (array)
boolean isMultiValue = cparam.isMultiValued();
// Check if there is a match based on param name
if (cparam.getName().equals(param_name)) {
boolean mandatory = cparam.isMandatory();
if (isMultiValue) {
// Override array with values from the CPE descriptor
replaceArray(cparam.getType(), mandatory, cps, aCPE_nvp, aComponentName);
} else {
// Override primitive parameter with value from the CPE descriptor
replacePrimitive(cparam.getType(), mandatory, cps, aCPE_nvp,
aComponentName);
}
return true; // Found a match and did the override
}