resourceTO.setName(name);
resourceTO.setConnectorId(105L);
MappingTO mapping = new MappingTO();
MappingItemTO item = new MappingItemTO();
item.setIntMappingType(IntMappingType.RoleName);
item.setPurpose(MappingPurpose.BOTH);
mapping.setAccountIdItem(item);
item = new MappingItemTO();
item.setIntMappingType(IntMappingType.RoleOwnerSchema);
item.setExtAttrName("owner");
item.setPurpose(MappingPurpose.BOTH);
mapping.addItem(item);
resourceTO.setRmapping(mapping);
resourceTO = createResource(resourceTO);