private String getSuperType(String type) throws ClassNotFoundException
{
ApplicationClass ac = Play.classes.getApplicationClass(type.replace('/', '.'));
try {
return ac != null ? new ClassReader(ac.enhancedByteCode).getSuperName() : new ClassReader(type).getSuperName();
} catch (IOException e) {
throw new ClassNotFoundException(type);
}
}