code: private static String getContentLocation(final Object content) {
          final File file = (File) ReflectionUtils.invokeMethod(content, "getFile", false);
          return file != null ? file.toURI().toString() : null;
      }
docs: Get the content location.
  
  @param content
  the content object
  @return the content location