private void createControlObject() {
    HashMap addresses = new HashMap();

    Address address = new Address();
    address.id = CONTROL_ADD_ID_1;
    address.street = CONTROL_ADD_STREET_1;
    address.city = CONTROL_ADD_CITY_1;
    address.country = CONTROL_ADD_COUNTRY_1;
    address.zip = CONTROL_ADD_ZIP_1;
    addresses.put(address.getKey(), address);

    address = new Address();
    address.id = CONTROL_ADD_ID_2;
    address.street = CONTROL_ADD_STREET_2;
    address.city = CONTROL_ADD_CITY_2;
    address.country = CONTROL_ADD_COUNTRY_2;
    address.zip = CONTROL_ADD_ZIP_2;
    addresses.put(address.getKey(), address);

    address = new Address();
    address.id = CONTROL_ADD_ID_3;
    address.street = CONTROL_ADD_STREET_3;
    address.city = CONTROL_ADD_CITY_3;
    address.country = CONTROL_ADD_COUNTRY_3;
    address.zip = CONTROL_ADD_ZIP_3;
    addresses.put(address.getKey(), address);

    Employee employee = new Employee();
    employee.id = CONTROL_ID;
    employee.name = CONTROL_NAME;
    employee.addresses = addresses;

    controlObj = new Root();
    controlObj.employee = employee;
  }
  public Object getWriteControlObject() {
    ArrayList rootAddresses = new ArrayList();
    ArrayList empAddresses = new ArrayList();

    Address address = new Address();
    address.id = CONTROL_ADD_ID_1;
    address.street = CONTROL_ADD_STREET_1;
    address.city = CONTROL_ADD_CITY_1;
    address.country = CONTROL_ADD_COUNTRY_1;
    address.zip = CONTROL_ADD_ZIP_1;
    empAddresses.add(address);
    rootAddresses.add(address);

    address = new Address();
    address.id = CONTROL_ADD_ID_2;
    address.street = CONTROL_ADD_STREET_2;
    address.city = CONTROL_ADD_CITY_2;
    address.country = CONTROL_ADD_COUNTRY_2;
    address.zip = CONTROL_ADD_ZIP_2;
    empAddresses.add(address);
    rootAddresses.add(address);

    address = new Address();
    address.id = CONTROL_ADD_ID_3;
    address.street = CONTROL_ADD_STREET_3;
    address.city = CONTROL_ADD_CITY_3;
    address.country = CONTROL_ADD_COUNTRY_3;
    address.zip = CONTROL_ADD_ZIP_3;
    empAddresses.add(address);
    rootAddresses.add(address);

    address = new Address();
    address.id = CONTROL_ADD_ID_4;
    address.street = CONTROL_ADD_STREET_4;
    address.city = CONTROL_ADD_CITY_4;
    address.country = CONTROL_ADD_COUNTRY_4;
    address.zip = CONTROL_ADD_ZIP_4;
    rootAddresses.add(address);

    Employee employee = new Employee();
    employee.id = CONTROL_ID;
    employee.name = CONTROL_NAME;
    employee.addresses = empAddresses;

    Root root = new Root();
    root.employee = employee;
    root.addresses = rootAddresses;
    return root;
  }
  public void createWriteControlObject() {
    ArrayList rootAddresses = new ArrayList();
    HashMap empAddresses = new HashMap();

    Address address = new Address();
    address.id = CONTROL_ADD_ID_1;
    address.street = CONTROL_ADD_STREET_1;
    address.city = CONTROL_ADD_CITY_1;
    address.country = CONTROL_ADD_COUNTRY_1;
    address.zip = CONTROL_ADD_ZIP_1;
    empAddresses.put(address.getKey(), address);
    rootAddresses.add(address);

    address = new Address();
    address.id = CONTROL_ADD_ID_2;
    address.street = CONTROL_ADD_STREET_2;
    address.city = CONTROL_ADD_CITY_2;
    address.country = CONTROL_ADD_COUNTRY_2;
    address.zip = CONTROL_ADD_ZIP_2;
    empAddresses.put(address.getKey(), address);
    rootAddresses.add(address);

    address = new Address();
    address.id = CONTROL_ADD_ID_3;
    address.street = CONTROL_ADD_STREET_3;
    address.city = CONTROL_ADD_CITY_3;
    address.country = CONTROL_ADD_COUNTRY_3;
    address.zip = CONTROL_ADD_ZIP_3;
    empAddresses.put(address.getKey(), address);
    rootAddresses.add(address);

    address = new Address();
    address.id = CONTROL_ADD_ID_4;
    address.street = CONTROL_ADD_STREET_4;
    address.city = CONTROL_ADD_CITY_4;
    address.country = CONTROL_ADD_COUNTRY_4;
    address.zip = CONTROL_ADD_ZIP_4;
    rootAddresses.add(address);

    Employee employee = new Employee();
    employee.id = CONTROL_ID;
    employee.name = CONTROL_NAME;
    employee.addresses = empAddresses;

    writeControlObj = new Root();
    writeControlObj.employee = employee;
    writeControlObj.addresses = rootAddresses;
  }
  protected Object getControlObject() {
    java.util.Vector addresses = new Vector();
    Vector employees = new Vector();

    Address address = new Address();
    address.id = CONTROL_ADD_ID_1;
    address.street = CONTROL_ADD_STREET_1;
    address.city = CONTROL_ADD_CITY_1;
    address.country = CONTROL_ADD_COUNTRY_1;
    address.zip = CONTROL_ADD_ZIP_1;
    addresses.add(address);

    Address address2 = new Address();
    address2.id = CONTROL_ADD_ID_2;
    address2.street = CONTROL_ADD_STREET_2;
    address2.city = CONTROL_ADD_CITY_2;
    address2.country = CONTROL_ADD_COUNTRY_2;
    address2.zip = CONTROL_ADD_ZIP_2;
    addresses.add(address2);

    Employee employee = new Employee();
    employee.id = CONTROL_ID;
    employee.name = CONTROL_NAME;
    employee.address = address;
    employees.add(employee);

    Employee emp2 = new Employee();
    emp2.id = CONTROL_ID_2;
    emp2.name = CONTROL_NAME_2;
    emp2.address = address2;
    employees.add(emp2);

    MultipleSourceRoot root = new MultipleSourceRoot();
    root.addresses = addresses;
    root.employees = employees;

    return root;
  }