private void validate(String path) throws HyscaleException {
        File confFile = new File(path);
        if (confFile != null && !confFile.exists()) {
            String confPath = SetupConfig.getMountOfDockerConf(path);
            confPath = WindowsUtil.updateToHostFileSeparator(confPath);
            WorkflowLogger.error(ControllerActivity.CANNOT_FIND_FILE,
                    confPath);
            throw new HyscaleException(ControllerErrorCodes.DOCKER_CONFIG_NOT_FOUND, confPath);
        }
    }
Returns credential helper if registry pattern found  in credHelpers if specified
or directly credsStore if specified else returns null.

@param pattern
@return docker credential helper else returns null
workflow-controller/controller-service/src/main/java/io/hyscale/controller/manager/impl/LocalRegistryManagerImpl.java