new Object[] { overrides[j], aParams[i].getName(), getMetaData().getName(),
delegateKey, getSourceUrlString() });
}
if (componentSpecifier instanceof ResourceCreationSpecifier) {
ConfigurationParameter overriddenParam = null;
ConfigurationParameterDeclarations delegateParamDecls = ((ResourceCreationSpecifier) componentSpecifier)
.getMetaData().getConfigurationParameterDeclarations();
if (aGroupName == null) // param not in group
{
overriddenParam = delegateParamDecls.getConfigurationParameter(null, paramName);
if (overriddenParam == null) {
throw new ResourceInitializationException(
ResourceInitializationException.INVALID_PARAM_OVERRIDE_NONEXISTENT_PARAMETER,
new Object[] { overrides[j], aParams[i].getName(), getMetaData().getName(),
delegateKey, paramName, getSourceUrlString() });
}
} else {
// make sure parameter exists in group
overriddenParam = delegateParamDecls.getConfigurationParameter(aGroupName, paramName);
if (overriddenParam == null) {
throw new ResourceInitializationException(
ResourceInitializationException.INVALID_PARAM_OVERRIDE_NONEXISTENT_PARAMETER_IN_GROUP,
new Object[] { overrides[j], aParams[i].getName(), getMetaData().getName(),
delegateKey, paramName, aGroupName, getSourceUrlString() });