java: generate service interface