code: public static Writer getWriterForProperty(final Class<?> beanClass, final String propertyName)
      {
          int splitPoint = propertyName.indexOf('.');
          if (splitPoint > 0)
          {
              String firstPart = propertyName.substring(0, splitPoint);
              String secondPart = propertyName.substring(splitPoint + 1);
              return new NestedWriter(beanClass, firstPart, secondPart);
          }
          return new SimpleWriter(beanClass, propertyName);
      }
docs: Create a {@link Writer} for the given property. A property may be nested using the dot character.
  
  @param clazz
  the type containing the property.
  @param propertyName
  the name of the property.
  @return a Writer for the property.