code: public static Double convertDouble(Object input) {
  
          Double result = null;
          if (input instanceof Double) {
              result = (Double)input;
          } else if (input instanceof Number) {
              result = Double.valueOf(((Number)input).doubleValue());
          } else if (input instanceof A_CmsJspValueWrapper) {
              result = ((A_CmsJspValueWrapper)input).getToDouble();
          } else {
              if (input != null) {
                  String str = String.valueOf(input);
                  // support both "10,0" and "10.0" comma style
                  str = str.replace(',', '.');
                  try {
                      result = Double.valueOf(str);
                  } catch (NumberFormatException e) {
                      LOG.info(e.getLocalizedMessage());
                  }
              }
          }
          return result;
      }
docs: Returns a Double created from an Object.<p>
  
  <ul>
  <li>If the input already is a {@link java.lang.Number}, this number is returned as Double.
  <li>If the input is of type {@link A_CmsJspValueWrapper}, the wrapper is converted to a Double using {@link A_CmsJspValueWrapper#getToDouble()}.
  <li>If the input is a String, it is converted to a Double.
  <li>Otherwise <code>null</code> is returned.
  </li>
  
  @param input the Object to create a Double from
  
  @return a Double created from the given Object