duplicating error handling code (i.e. the connection descriptors map is null, the connection descriptor does not exist, etc).
duplicating error handling code (i.e. the connection descriptors map is null, the connection descriptor does not exist, etc).