private static String[] dependencyEnumSetToStringArray(EnumSet<DependencyType> dependencySet){
  String[] stringDependencyTypes=null;
  if (dependencySet != null && dependencySet.size() > 0) {
    int n=dependencySet.size();
    int i=0;
    stringDependencyTypes=new String[n];
    for (    DependencyType dependency : dependencySet) {
      stringDependencyTypes[i++]=dependency.toString();
    }
  }
  return stringDependencyTypes;
}

private static String [ ] dependencyEnumSetToStringArray ( EnumSet < DependencyType > dependencySet ) { String [ ] stringDependencyTypes = null ; if ( dependencySet != null && dependencySet . size ( ) > 0 ) { int n = dependencySet . size ( ) ; int i = 0 ; stringDependencyTypes = new String [ n ] ; for ( DependencyType dependency : dependencySet ) { stringDependencyTypes [ i ++ ] = dependency . toString ( ) ; } } return stringDependencyTypes ; }
convert an enumset of dependencytype to an array of strings .
