)
public void addAll(CtClass ctClass, Map<String, String> attributes) throws NotFoundException, CannotCompileException, BadBytecode {
String fromClass = attributes.get("fromClass");
CtClass from = classPool.get(fromClass);
transformClassStaticMethods(from, ctClass.getName());
ClassMap classMap = new ClassMap();
classMap.put(fromClass, ctClass.getName());
for (CtField ctField : from.getDeclaredFields()) {
if (!ctField.getName().isEmpty() && ctField.getName().charAt(ctField.getName().length() - 1) == '_') {
ctField.setName(ctField.getName().substring(0, ctField.getName().length() - 1));
}
CtClass expectedType = ctField.getType();