code: private void initializeProperties(
          Class<?> type, Object oldInstance, Encoder encoder)
      {
          BeanInfo info = null;
          try
          {
              info = Introspector.getBeanInfo(type);
          }
          catch (IntrospectionException ie)
          {
              encoder.getExceptionListener().exceptionThrown(ie);
              return;
          }
          PropertyDescriptor[] pds = info.getPropertyDescriptors();
          for (int i = 0; i < pds.length; ++i)
          {
              try
              {
                  initializeProperty(type, pds[i], oldInstance, encoder);
              }
              catch (Exception e)
              {
                  encoder.getExceptionListener().exceptionThrown(e);
              }
          }
      }
docs: Write all statements to initialize the properties of the given
  Java Bean Type, based on the given instance, using the given
  encoder
  
  @param type The Java Bean Type
  @param oldInstance The base instance
  @param encoder The encoder