try {
// check whether parameter is a plugin type
if (p.getPluginType() != null && p.getPluginType().length() > 0) {
// check what type of plugintype (string, list, map, etc.) is
// requested
IProperty property = null;
if (List.class.getName().equals(p.getType())) {
property =
new ListPluginTypeProperty(p.getName(), SimSystem.getRegistry()
.getClassLoader().loadClass(p.getPluginType()));
} else {
property =
new PluginTypeProperty(p.getName(), SimSystem.getRegistry()
.getClassLoader().loadClass(p.getPluginType()));
}
if (property != null) {
properties.add(property);
}
} else {
IProperty property =
new FactoryParameterProperty(p.getName(), SimSystem.getRegistry()
.getClassLoader().loadClass(p.getType()));
properties.add(property);
}