Add getOptionalConnection