class IrisString {

   public static String joinIfNotEmpty(String separator, String... params) {
      if (params.length <= 0) return "";

      StringBuilder builder = null;
      for (String s : params) {
         if (StringUtils.isEmpty(s)) continue;

         if (builder == null) {
            builder = new StringBuilder(s);
         } else {
            builder.append(separator);
            builder.append(s);
         }
      }

      if (builder == null) return "";

      return builder.toString();
   }

}