public static void registerHandlers() {
        if (kindVsHandlerMap == null) {
            kindVsHandlerMap = new HashMap<>();
            for (PodParentHandler handler : ServiceLoader.load(PodParentHandler.class, PodParentFactory.class.getClassLoader())) {
                kindVsHandlerMap.put(handler.getKind(), handler);
            }
        }
    }
Factory Class to provide PodParentHandlers based on Kind
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/factory/PodParentFactory.java