code: public static void setPropertySafely(Marshaller marshaller, String name, Object value) {
          try {
              marshaller.setProperty(name, value);
          } catch (PropertyException e) {
              LOGGER.warn(String.format("Can't set \"%s\" property to given marshaller", name), e);
          }
      }
docs: Try to set specified property to given marshaller
  
  @param marshaller specified marshaller
  @param name       name of property to set
  @param value      value of property to set