}
};
if(address == null) {
// Let the MTP choose the address
TransportAddress ta = proto.activate(dispatcher, myProfile);
address = proto.addrToStr(ta);
}
else {
// Convert the given string into a TransportAddress object and use it
TransportAddress ta = proto.strToAddr(address);
proto.activate(dispatcher, ta, myProfile);
}
MTPDescriptor result = new MTPDescriptor(proto.getName(), className, new String[] {address}, proto.getSupportedProtocols());
routes.addLocalMTP(address, proto, result);