code: public static String camelize(final String text, final boolean capitalizeFirstChar)
      {
          StringBuilder sb = new StringBuilder();
          String[] tokens = text.split("[\\.\\s_-]+");
  
          if (tokens.length < 2)
              return capitalizeFirstChar ? capitalize(text) : text;
  
          for (String token : tokens)
              sb.append(capitalize(token));
  
          return capitalizeFirstChar ? sb.toString() : sb.substring(0, 1).toLowerCase(currentLocale())
                  + sb.substring(1);
      }
docs: <p>
  Makes a phrase camel case. Spaces, hyphens, underscores and dots will be
  removed.
  </p>
  
  @param capitalizeFirstChar
  true makes the first letter uppercase
  @param text
  String to be camelized
  @return Camelized string