code: public static int copyProperties(
                      final Object dst,
                      final Object src,
                      final String[] properties
                      )
      {
          if (properties == null) {
              throw new IllegalArgumentException( "no property list specified" );
          }
  
          int  count = 0;
          for (String  p : properties) {
              if (p == null) {
                  continue;
              }
  
              count += copyProperty( dst, src, p );
          }
  
          return count;
      }
docs: Copies the properties from the object to the other object.
  
  @param   dst
  the destination object to which the property value is set.
  @param   src
  the source object from which the property value is got.
  @param   properties
  the names of the properties to be copied.
  @return
  the number of properties copied.