public RebootInstancesResponse rebootInstances(RebootInstances rebootInstances) {
EC2RebootInstances request = new EC2RebootInstances();
RebootInstancesType rit = rebootInstances.getRebootInstances();
// -> toEC2StartInstances
RebootInstancesInfoType rist = rit.getInstancesSet();
RebootInstancesItemType[] items = rist.getItem();
if (null != items) { // -> should not be empty
for (int i = 0; i < items.length; i++)
request.addInstanceId(items[i].getInstanceId());
}
return toRebootInstancesResponse(engine.rebootInstances(request));