private ImageRegistry from(CredsStoreEntity credsStoreEntity) {
        if (credsStoreEntity == null) {
            return null;
        }
        String encodedToken = EncodeDecodeUtil.getEncodedCredentials(credsStoreEntity.getUsername(), credsStoreEntity.getSecret());
        return new ImageRegistry(credsStoreEntity.getServerURL(), encodedToken);
    }
returns ImageRegistry from docker credHelper from local docker config if present,else returns null.

@param dockerCredHelper
@return ImageRegistry
workflow-controller/controller-service/src/main/java/io/hyscale/controller/builder/ImageRegistryBuilder.java