docs: public static Integer convertProfileIdentifier(String profileIdentifier) throws Exception {
          Integer profileId = -1;
          if (profileIdentifier == null) {
              throw new Exception("A profileIdentifier must be specified");
          } else {
              try {
                  profileId = Integer.parseInt(profileIdentifier);
              } catch (NumberFormatException ne) {
                  // this is OK.. just means it's not a #
                  // try to get it by name instead
                  profileId = ProfileService.getInstance().getIdFromName(profileIdentifier);
  
              }
          }
          logger.info("Profile id is {}", profileId);
          return profileId;
      }