class RegistryCredentialRetriever {

  static Optional<Credential> getBaseImageCredential(BuildContext buildContext)
      throws CredentialRetrievalException {
    return retrieve(buildContext.getBaseImageConfiguration(), buildContext.getEventHandlers());
  }

}