code: public static String getRandomPWD(int countTotal, int countCapitals, int countSpecials) {
  
          CmsDefaultPasswordGenerator generator = new CmsDefaultPasswordGenerator();
          return generator.getRandomPassword(countTotal, countCapitals, countSpecials);
      }
docs: Get a random password.<p>
  @param countTotal Desired password length
  @param countCapitals minimal count of Capital letters
  @param countSpecials count of special chars
  
  @return random password