public synchronized ServerDataConnectionFactory getDataConnection() {
if(containsAttribute(ATTRIBUTE_DATA_CONNECTION)) {
return (ServerDataConnectionFactory) getAttribute(ATTRIBUTE_DATA_CONNECTION);
} else {
IODataConnectionFactory dataCon = new IODataConnectionFactory(context, this);
dataCon.setServerControlAddress(((InetSocketAddress)getLocalAddress()).getAddress());
setAttribute(ATTRIBUTE_DATA_CONNECTION, dataCon);
return dataCon;
}
}