Map<String, Object> params,
MultiFileBuilderParametersImpl multiParams)
{
Map<String, Object> newParams = new HashMap<String, Object>(params);
newParams.remove(KEY_INTERPOLATOR);
BuilderParameters managedBuilderParameters =
multiParams.getManagedBuilderParameters();
if (managedBuilderParameters != null)
{
// clone parameters as they are applied to multiple builders
BuilderParameters copy =
(BuilderParameters) ConfigurationUtils
.cloneIfPossible(managedBuilderParameters);
newParams.putAll(copy.getParameters());
}
return newParams;
}