class DockerConfig {

  @Nullable
  AuthTemplate getAuthFor(String registry) {
    Map.Entry<String, AuthTemplate> authEntry =
        findFirstInMapByKey(dockerConfigTemplate.getAuths(), getRegistryMatchersFor(registry));
    return authEntry != null ? authEntry.getValue() : null;
  }

    DockerConfig(DockerConfigTemplate dockerConfigTemplate);

}