}
private void hasOnePrimitiveParameter(Method method) {
Class<?>[] parameters = method.getParameterTypes();
if (parameters.length != 1)
throw new InvalidInterfaceException(method.getName() + " is a setter with more than one parameter");
if (!parameters[0].isPrimitive())
throw new InvalidInterfaceException(method.getName() + " is a setter with a non-primitive parameter");
}