}
Element activeElm = SpringUtil.getChildElement(element,
FtpServerNamespaceHandler.FTPSERVER_NS, "active");
if (activeElm != null) {
Active active = new Active();
active.setEnable(SpringUtil.parseBoolean(activeElm, "enabled",
true));
active.setIpCheck(SpringUtil.parseBoolean(activeElm,
"ip-check", false));
active.setLocalPort(SpringUtil.parseInt(activeElm,
"local-port", 0));
InetAddress localAddress = SpringUtil.parseInetAddress(
activeElm, "local-address");
if (localAddress != null) {
active.setLocalAddress(localAddress);
}
dc.setActive(active);
}