configuration = new QueueConfiguration(destinationArn,
events.toArray(new String[events.size()]));
configuration.withObjectPrefixes(prefixes
.toArray(new String[prefixes.size()]));
} else if (name.equals("CloudFunctionConfiguration")) {
configuration = new CloudFunctionConfiguration(
invocationRole, destinationArn,
events.toArray(new String[events.size()]));
configuration.withObjectPrefixes(prefixes
.toArray(new String[prefixes.size()]));
}