stagesupport/src/main/java/com/streamsets/pipeline/lib/util/AntPathMatcher.java
private static String[] toStringArray(Collection<String> collection) {
    if (collection == null) {
      return null;
    }
    return collection.toArray(new String[collection.size()]);
  }
private static String[] toStringArray(Collection<String> collection) {
    if (collection == null) {
      return null;
    }
    return collection.toArray(new String[collection.size()]);
  }
Copy the given {@code Collection} into a {@code String} array.
<p>The {@code Collection} must contain {@code String} elements only.
@param collection the {@code Collection} to copy
@return the {@code String} array ({@code null} if the supplied
{@code Collection} was {@code null})