private List<PTM> remapParentPtms(PTM currentPTM) {
        List<PTM> resultPTMs = new ArrayList<PTM>();
        for(Comparable parent: ((PSIModPTM)currentPTM).getParentPTMList()){
            PSIModPTM psiModPTM = (PSIModPTM) psiModController.getPTMbyAccession((String) parent);
            if(psiModPTM.getUnimodId() != null && !psiModPTM.getUnimodId().isEmpty()){
                resultPTMs.addAll(remapToUniMod(psiModPTM));
            }else if(psiModPTM.getParentPTMList() != null && !psiModPTM.getParentPTMList().isEmpty()){
                resultPTMs.addAll(remapParentPtms(psiModPTM));
            }
        }
        return resultPTMs;
    }