// Clone OR Create a new AsyncAggregateErrorConfiguration
AsyncAEErrorConfiguration aggErrorConfig = null;
AsyncAEErrorConfiguration errorConfig = metaData.getAsyncAEErrorConfiguration();
if (errorConfig instanceof AsyncAggregateErrorConfiguration_Impl) {
// Clone
aggErrorConfig = errorConfig.clone();
} else {
// Create a new AsyncAggregateErrorConfiguration
aggErrorConfig = new AsyncAggregateErrorConfiguration_Impl();
aggErrorConfig.setGetMetadataErrors(new GetMetadataErrors_Impl(errorConfig));
aggErrorConfig.setProcessCasErrors(errorConfig.getProcessCasErrors().clone(aggErrorConfig));