if (pluginsSubDirs[i].isDirectory()){
retVal.add(pluginsSubDirs[i]);
}
}
}catch (Exception e){
throw new PluginException("Error getting plugins list",e);
}
}else{
throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Cannot read plugins directory ")+pluginsDirectory.getAbsolutePath());
}
}else{
throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Plugins directory is null."));
}
return (File[])retVal.toArray(new File[retVal.size()]);
}