public static DescribeAddressesResponse toDescribeAddressesResponse(EC2DescribeAddressesResponse engineResponse) {
List<DescribeAddressesResponseItemType> items = new ArrayList<DescribeAddressesResponseItemType>();
EC2Address[] addressSet = engineResponse.getAddressSet();
for (EC2Address addr : addressSet) {
DescribeAddressesResponseItemType item = new DescribeAddressesResponseItemType();
item.setPublicIp(addr.getIpAddress());
item.setInstanceId(addr.getAssociatedInstanceId());
item.setDomain("standard"); // Since VPC is not supported by AWSAPI default to 'standard'
items.add(item);
}
DescribeAddressesResponseInfoType descAddrRespInfoType = new DescribeAddressesResponseInfoType();
descAddrRespInfoType.setItem(items.toArray(new DescribeAddressesResponseItemType[0]));