}
if (hasPluginConfig()) {
// Validate plugin id
PluginConfig pc = _csConfig.getPluginConfig();
PluginID id = pc.getId();
errors.addAll(validatePluginUniqueName(getPluginUniqueName()));
// Validate plugin dependencies
Iterator<PluginID> dependencies = pc.getDependencies().iterator();
while (dependencies.hasNext()) {
PluginID did = (PluginID) dependencies.next();
if (did.getUniqueName() == null || did.getUniqueName().trim().equals("")) {
errors.add(new ValidationError("Unique name of plugin dependency should not be empty.", new String[] { "pluginDependencies" }));
}
else if (did.getUniqueName().contains(" ")) {
errors.add(new ValidationError("Unique name of plugin dependency should not contain white spaces.", new String[] { "pluginDependencies" }));
}
}
// Validate relation between minimum WGA version and WGA