http://ourownjava.com/endeca example codes