code: public static Identifiers convertProfileAndPathIdentifier(String profileIdentifier, String pathIdentifier) throws Exception {
          Identifiers id = new Identifiers();
  
          Integer profileId = null;
          try {
              profileId = ControllerUtils.convertProfileIdentifier(profileIdentifier);
          } catch (Exception e) {
              // this is OK for this since it isn't always needed
          }
          Integer pathId = convertPathIdentifier(pathIdentifier, profileId);
  
          id.setProfileId(profileId);
          id.setPathId(pathId);
  
          return id;
      }
docs: Obtain the IDs of profile and path as Identifiers
  
  @param profileIdentifier actual ID or friendly name of profile
  @param pathIdentifier    actual ID or friendly name of path
  @return
  @throws Exception