Use Java reflection to generate schemas and protocols for existing classes.