ArrayList<String> resourceIdList = new ArrayList<String>();
Map<String, String> resourceTagList = new HashMap<String, String>();
CreateTagsType ctt = createTags.getCreateTags();
ResourceIdSetType resourceIds = ctt.getResourcesSet();
ResourceTagSetType resourceTags = ctt.getTagSet();
ResourceIdSetItemType[] resourceIdItems = resourceIds.getItem();
if (resourceIdItems != null) {
for (int i = 0; i < resourceIdItems.length; i++)
resourceIdList.add(resourceIdItems[i].getResourceId());
}
request = toResourceTypeAndIds(request, resourceIdList);