@Override
    public V1ObjectMeta getMetadata() {
        Map<String,Object> metaMap = (Map) get("metadata");
        V1ObjectMeta v1ObjectMeta = new V1ObjectMeta();
        v1ObjectMeta.setName((String) metaMap.get("name"));
        v1ObjectMeta.setNamespace((String) metaMap.get("namespace"));
        v1ObjectMeta.setAnnotations((Map) metaMap.get("annotations"));
        return v1ObjectMeta;
    }
CustomObject is an implementation of KubernetesObject carrying
 context of any given k8s resource kind in a HashMap.
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/model/CustomObject.java