private boolean hasPartialInsertComponentGeneration(Component component) {
   Iterator subProperties = component.getPropertyIterator();
   while (subProperties.hasNext()) {
     Property prop = (Property) subProperties.next();
     if (prop.getGeneration() == PropertyGeneration.ALWAYS
         || prop.getGeneration() == PropertyGeneration.INSERT) {
       return true;
     } else if (prop.getValue() instanceof Component) {
       if (hasPartialInsertComponentGeneration((Component) prop.getValue())) {
         return true;
       }
     }
   }
   return false;
 }