code: private static String[] resolveProtocols(String csv) {
          if (csv != null && !csv.equals("")) {
              return csv.split(",");
          } else {
              return null;
          }
      }
docs: String array.