in src/org/doublecloud/ws/util/TypeUtil.java [89:120]
public final static Class<?> getVimClass(String type)
{
if(VIM_CLASSES.containsKey(type))
{
return VIM_CLASSES.get(type);
}
else
{
try
{
Class<?> clazz = null;
if(type.endsWith("[]")==false)
{
clazz = Class.forName(PACKAGE_NAME + "." + type);
}
else
{
String arrayType = type.substring(0, type.length() - 2);
clazz = Array.newInstance(getVimClass(arrayType), 0).getClass();
}
VIM_CLASSES.put(type, clazz);
return clazz;
}
catch (ClassNotFoundException cnfe)
{
cnfe.printStackTrace();
return null;
}
}
}