for (int i = 0; i < 4; i++) {
if (i > 0) {
networkBuffer.append(".");
subnetBuffer.append(".");
}
Part netPart = (Part) getParameter(IPRangeProfile.NETWORK_ADDRESS + "-" + i);
networkBuffer.append(netPart.getValue());
Part subPart = (Part) getParameter(IPRangeProfile.SUBNET_MASK + "-" + i);
subnetBuffer.append(subPart.getValue());
}
InetAddress networkAddress = InetAddress.getByName(networkBuffer.toString());
ipRange.setNetworkAddress(networkAddress.getAddress());