code: public void resolveCreds() {
          final AuthConfigurations authConfigs = new AuthConfigurations();
  
          for (Map.Entry<String, String> entry : creds.entrySet()) {
              final String registry = entry.getKey();
              final String credId = entry.getValue();
              final Credentials credentials = ClientBuilderForConnector.lookupSystemCredentials(credId);
              if (credentials instanceof UsernamePasswordCredentials) {
                  final UsernamePasswordCredentials upCreds = (UsernamePasswordCredentials) credentials;
                  final AuthConfig authConfig = new AuthConfig()
                          .withRegistryAddress(registry)
                          .withPassword(upCreds.getPassword())
                          .withUsername(upCreds.getUserName());
                  authConfigs.addConfig(authConfig);
              } else if (credentials instanceof DockerRegistryAuthCredentials) {
                  final DockerRegistryAuthCredentials authCredentials = (DockerRegistryAuthCredentials) credentials;
                  authConfigs.addConfig(
                          authCredentials.getAuthConfig().withRegistryAddress(registry)
                  );
              }
          }
          this.authConfigurations = authConfigs;
      }
docs: Fill additional object with resolved creds.
  For example before transfering object to remote.