CtMethod getMethod = CtNewMethod.make( trackerGetMethod, managedCtClass );
MethodInfo methodInfo = getMethod.getMethodInfo();
SignatureAttribute signatureAttribute =
new SignatureAttribute( methodInfo.getConstPool(), "()Ljava/util/Set<Ljava/lang/String;>;" );
methodInfo.addAttribute( signatureAttribute );
managedCtClass.addMethod( getMethod );
}
catch (CannotCompileException e) {
e.printStackTrace();