Simple validation framework for Java