Source:
<code>public AuthConfig lookupAuthConfig(DockerImageName dockerImageName, AuthConfig defaultAuthConfig) { log.debug("Looking up auth config for image: {}", dockerImageName); <START> <END> log.debug("RegistryAuthLocator has configFile: ({}) and commandPathPrefix: {}", configFile, configFile.exists() ? "exists" : "does not exist", commandPathPrefix); try { final JsonNode config = OBJECT_MAPPER.readTree(configFile); final String registryName = effectiveRegistryName(dockerImageName); log.debug("registryName for dockerImageName [{}]", registryName, dockerImageName); final AuthConfig helperAuthConfig = authConfigUsingHelper(config, registryName); if (helperAuthConfig != null) { log.debug("found helper auth config [{}]", toSafeString(helperAuthConfig)); return helperAuthConfig; } final AuthConfig storeAuthConfig = authConfigUsingStore(config, registryName); if (storeAuthConfig != null) { log.debug("found creds store auth config [{}]", toSafeString(storeAuthConfig)); return storeAuthConfig; } final AuthConfig existingAuthConfig = findExistingAuthConfig(config, registryName); if (existingAuthConfig != null) { log.debug("found existing auth config [{}]", toSafeString(existingAuthConfig)); return existingAuthConfig; } log.debug("no matching Auth Configs - falling back to defaultAuthConfig [{}]", toSafeString(defaultAuthConfig)); } catch (Exception e) { log.debug("Failure when attempting to lookup auth config (dockerImageName: {}, configFile: {}. Falling back to docker-java default behaviour. Exception message: {}", dockerImageName, configFile, e.getMessage()); } return defaultAuthConfig; }</code><technical_language>I love this PR! give this a proper review try today, thank for this on</technical_language>

Target:
public AuthConfig lookupAuthConfig(DockerImageName dockerImageName, AuthConfig defaultAuthConfig) { log.debug("Looking up auth config for image: {}", dockerImageName); log.debug("RegistryAuthLocator has configFile: ({}) and commandPathPrefix: {}", configFile, configFile.exists() ? "exists" : "does not exist", commandPathPrefix); try { final JsonNode config = OBJECT_MAPPER.readTree(configFile); final String registryName = effectiveRegistryName(dockerImageName); log.debug("registryName for dockerImageName [{}]", registryName, dockerImageName); final AuthConfig helperAuthConfig = authConfigUsingHelper(config, registryName); if (helperAuthConfig != null) { log.debug("found helper auth config [{}]", toSafeString(helperAuthConfig)); return helperAuthConfig; } final AuthConfig storeAuthConfig = authConfigUsingStore(config, registryName); if (storeAuthConfig != null) { log.debug("found creds store auth config [{}]", toSafeString(storeAuthConfig)); return storeAuthConfig; } final AuthConfig existingAuthConfig = findExistingAuthConfig(config, registryName); if (existingAuthConfig != null) { log.debug("found existing auth config [{}]", toSafeString(existingAuthConfig)); return existingAuthConfig; } log.debug("no matching Auth Configs - falling back to defaultAuthConfig [{}]", toSafeString(defaultAuthConfig)); } catch (Exception e) { log.warn("Failure when attempting to lookup auth config (dockerImageName: {}, configFile: {}. Falling back to docker-java default behaviour. Exception message: {}", dockerImageName, configFile, e.getMessage()); } return defaultAuthConfig; }