out.println("  private static PropertyDescriptor properties[];\n"+
println(out,"  private static PropertyDescriptor properties[];\n"+
    public void writeBeanInfoBody(PrintWriter out, ClassD cd) {      String name = cd.getName();      try {        out.println("  private static PropertyDescriptor properties[];\n"+                    "  static {");        Vector v = cd.getSlots(); //cd.getAllSlots();        int l = v.size();        if (l == 0) {          out.println("    properties = new PropertyDescriptor["+l+"];");        } else {          out.println("    try {");          out.println("      properties = new PropertyDescriptor["+l+"];");          int i = 0;          for (Enumeration sls = v.elements(); sls.hasMoreElements(); ) {              SlotD sd = (SlotD) sls.nextElement();            String sname = sd.getName();            String stype = sd.getType();                        if (sd.getTimePhased()) {              out.println("      properties["+i+"] = new PropertyDescriptor(\""+                          sname+"Schedule\", PropertyGroupSchedule.class, "+                          "\"get"+sname+"Schedule\", "+                          "null);");            } else {              out.println("      properties["+i+"] = new PropertyDescriptor(\""+                          sname+"\", "+                          name+".class, "+                          "\"get"+sname+"\", "+                          "null);");            }            i++;          }          out.println("    } catch (IntrospectionException ie) {}");        }        out.println("  }");        out.println();        out.println("  public PropertyDescriptor[] getPropertyDescriptors() {\n"+                    "    PropertyDescriptor[] pds = super.getPropertyDescriptors();\n"+                    "    PropertyDescriptor[] ps = new PropertyDescriptor[pds.length+"+                    l+"];\n"+                    "    System.arraycopy(pds, 0, ps, 0, pds.length);\n"+                    "    System.arraycopy(properties, 0, ps, pds.length, "+l+");\n"+                    "    return ps;\n"+                    "  }");      } catch (Exception e) {        System.err.println("Caught "+e);      }    }