Generator: add java class import and attribute support