code: public static Method getWriteMethodOptional(
          Class<?> beanClass, String propertyName)
      {
          PropertyDescriptor propertyDescriptor =
              getPropertyDescriptorOptional(beanClass, propertyName);
          if (propertyDescriptor == null)
          {
              return null;
          }
          return propertyDescriptor.getWriteMethod();
      }
docs: Returns the write method for the property with the given name
  in the given bean class.
  
  @param beanClass The bean class
  @param propertyName The property name
  @return The write method, or <code>null</code> if no appropriate
  write method is found.