{
List reporterComponentAddresses = new ArrayList();
for (int i = 0; i < m_reporterComponentAddresses.length; i++)
{
ComponentAddressType reporterComponentAddressType = reporterComponentType.addNewComponentAddress();
XmlBeanUtils.addChildElement(reporterComponentAddressType, (XmlObject) m_reporterComponentAddresses[i]);
reporterComponentAddresses.add(reporterComponentAddressType);
}
reporterComponentType.setComponentAddressArray((ComponentAddressType[]) reporterComponentAddresses.toArray(new ComponentAddressType[0]));
}
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ComponentType sourceComponentType = managementEventType.addNewSourceComponent();
if (m_sourceResourceId != null)
{
sourceComponentType.setResourceId(m_sourceResourceId);
}
if (m_sourceComponentAddresses != null)
{
List sourceComponentAddresses = new ArrayList();
for (int i = 0; i < m_sourceComponentAddresses.length; i++)
{
ComponentAddressType sourceComponentAddressType = sourceComponentType.addNewComponentAddress();
XmlBeanUtils.addChildElement(sourceComponentAddressType, (XmlObject) m_sourceComponentAddresses[i]);
sourceComponentAddresses.add(sourceComponentAddressType);
}
sourceComponentType.setComponentAddressArray((ComponentAddressType[]) sourceComponentAddresses.toArray(new ComponentAddressType[0]));