// If the "retain" attribute is not configured we configure it. If
// this is the first bean config, we set it to "true" (i.e. retain it),
// otherwise set it to "false" (i.e. do not retain it)...
if(retain == null) {
List<SmooksResourceConfiguration> creatorConfigs = extensionContext.lookupResource(new ConfigSearch().resource(BeanInstanceCreator.class.getName()));
if(!creatorConfigs.isEmpty()) {
// This is not the first bean config... set retain to "false"
beanConfig.setParameter("retain", "false");
}