return resources;
}
void createBundle(String bundleName, String bundleTypeName, String resourceTypeName, String pluginName)
throws Exception {
SubjectManagerLocal subjectMgr = LookupUtil.getSubjectManager();
BundleManagerLocal bundleMgr = LookupUtil.getBundleManager();
ResourceTypeManagerLocal resourceTypeMgr = LookupUtil.getResourceTypeManager();
ResourceType resourceType = resourceTypeMgr.getResourceTypeByNameAndPlugin(resourceTypeName, pluginName);
assertNotNull("Cannot create bundle. Unable to find resource type for [name: " + resourceTypeName
+ ", plugin: " + pluginName + "]", resourceType);
BundleType bundleType = bundleMgr.getBundleType(subjectMgr.getOverlord(), bundleTypeName);
assertNotNull("Cannot create bundle. Unable to find bundle type for [name: " + bundleTypeName + "]", bundleType);
Bundle bundle = bundleMgr.createBundle(subjectMgr.getOverlord(), bundleName, "test bundle: " + bundleName,
bundleType.getId(), null);
assertNotNull("Failed create bundle for [name: " + bundleName + "]", bundle);
}