code: public static Node getContentNode(final Node subject) {
          return subject == null ? null : NodeFactory.createURI(subject.getURI().replace("/" + FCR_METADATA, ""));
      }
docs: Get the content-bearing node for the given subject
  @param subject the subject
  @return content-bearing node for the given subject