// Set the package name and class name
String packageName = getPackageName(name);
binaryBuilder.addPackage(packageName);
ClassDef classDef = new ClassDef();
classDef.name = getClassName(name);
// Set the extended class and interfaces.
Class[] interfaces = clazz.getInterfaces();
if (clazz.isInterface()) {