if (descriptor.getDefType() == DefType.COMPONENT) {
DefDescriptor<ComponentDef> javaDescriptor = DefDescriptorImpl.getAssociateDescriptor(descriptor,
ComponentDef.class, "java");
Source<?> source = sourceFactory.getSource(javaDescriptor);
if (source != null) {
SourceWriter writer = ParserFactory.getWriter(source.getFormat());
writer.write(def, source);
}
}
}