@Override
public MethodSource<JavaClassSource> addValidatorMethod(JavaResource target, String name)
throws FileNotFoundException
{
JavaClassSource source = target.getJavaType();
MethodSource<JavaClassSource> method = source.addMethod().setName(name)
.setParameters("final FacesContext context, final UIComponent component, final Object value")
.setBody("throw new ValidatorException(new FacesMessage(\"Validator not yet implemented.\"));")
.addThrows(ValidatorException.class);
method.getOrigin().addImport(ValidatorException.class);
method.getOrigin().addImport(FacesMessage.class);