code: public void addMethod(String methodName, Class<?> returnType, Class<?> [] params, boolean isStatic, String ... lines) throws CannotCompileException, NotFoundException {
  		CtMethod m = new CtMethod(resolve(returnType), methodName, getList(params), clazz);
  		int modifiers = Modifier.PUBLIC;
  		if (isStatic) {
  			modifiers += Modifier.STATIC;
  		}
  		m.setModifiers(modifiers);
  		m.setBody(formatCode(lines));
  		clazz.addMethod(m);
  	}
docs: <p>addMethod.</p>
  
  @param methodName a {@link java.lang.String} object.
  @param returnType a {@link java.lang.Class} object.
  @param params an array of {@link java.lang.Class} objects.
  @param isStatic a boolean.
  @param lines a {@link java.lang.String} object.
  @throws javassist.CannotCompileException if any.
  @throws javassist.NotFoundException if any.