logger.debug("Introducing method: " + method.getName());
Object result = null;
try {
if (method.getName().startsWith("get")) {
if (method.getReturnType().isPrimitive()) {
throw new IllegalReturnTypeException("Return types of your introduced interfaces cannot be primitives.");
}
result = this.fields.get(method.getName().substring(3));
}
else if (method.getName().startsWith("is")) {
if (method.getReturnType().isPrimitive()) {
throw new IllegalReturnTypeException("Return types of your introduced interfaces cannot be primitives.");
}
result = this.fields.get(method.getName().substring(2));
}
else if (method.getName().startsWith("set")) {
if (methodInvocation.getArguments().length != 1) {