assertNotNull("Cannot create resources. Unable to find resource type for [name: " + resourceTypeName
+ ", plugin: " + pluginName + "]", resourceType);
List<Resource> resources = new ArrayList<Resource>();
for (int i = 0; i < count; ++i) {
resources.add(new ResourceBuilder().createServer().withResourceType(resourceType)
.withName(resourceType.getName() + "--" + i).withUuid(resourceType.getName())
.withRandomResourceKey(resourceType.getName() + "--" + i).build());
}
getTransactionManager().begin();