Please have a look at JCaiF - "The Java Computer Aided Interviewing Framework (JCaiF) is a collection of Java interfaces that define the common elements of a questionnaire or survey" - so perhaps you can implement your application against these interfaces.