final JDefinedClass factoryClass = packageoutline.objectFactory();
if (factoryClass != null) {
// LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME+" pkg: " + pkg.name());
LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.name());
LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.fullName());
LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
factoryClass.methods().clear();
LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
// factoryClass.fields().clear();
final JPackage parent = (JPackage)factoryClass.parentContainer();
parent.remove(factoryClass);