if (theInterface.isInterface()) {
aClass.addMethod(CtNewMethod.make("public String toString() { return getRdfId() != null ? getRdfId().toString() : super.toString(); } ", aClass));
aClass.addMethod(CtNewMethod.make("public int hashCode() { return getRdfId() != null ? getRdfId().hashCode() : 0; } ", aClass));
}
aClass.freeze();
Class<T> aResult = null;
try {
aResult = (Class<T>) aClass.toClass();
}