if (connector == null)
{
return null;
}
ConnectorElement element = new ConnectorElement();
element.setName(connectorName);
element.setDefaultConnector(defaultConnectorName
.equals(connectorName));
element.setPorts(connector.getPortInfo());
element.setStack(connector.getStackImpl());
element.setProperties(connector.getProperties());
element.setMaxThreads(connector.getMaxThreadCount());
element.setMinThreads(connector.getMinThreadCount());
return element;
}
}