* @return a closable that can be invoked in case the service is to be shut
* down
*/
public Closeable initialize() {
try {
Connection connection = new SocketConnection(this);
SocketAddress address = new InetSocketAddress(PORT_NUMBER);
connection.connect(address);
logger.info("HTTP service for ExtensionSwap installation running on port {}", PORT_NUMBER);
return connection;
} catch (IOException e) {
logger.warn("Could not host HTTP service for ExtensionSwap installation on port " + PORT_NUMBER
+ ". Automatic installations of extensions will not be available.", e);