I was just reading through the Java 5 in a nutshell article. And I noticed that it mentioned an Annotation Processing Tool that seems to provide preprocessing functionality for annotated classes. According to the Article APT will be included with J2SE 1.5 and provides:
a build-time, source-based, read-only view of program structure which cleanly models the Java programming language's type system. First, apt runs annotation processors that can produce new source code and other files.
Perhaps you can explore using APT's functionality in part two.