java 6 tag and hooks