try {
int arrayCount = 0;
JType rootType = jType;
while (rootType.isArray()) {
rootType = rootType.elementType();
arrayCount++;
}
cls = getClassByName(rootType);
// bmargulies cannot find a way to ask the JVM to do this without creating
// an array object on the way.