cal.setTime(getInternalDate());
node.setProperty(INTERNAL_DATE_PROPERTY, cal);
Node contentNode = JcrUtils.getOrAddNode(node, JcrConstants.JCR_CONTENT, JcrConstants.NT_RESOURCE);
Binary binaryContent = contentNode.getSession().getValueFactory().createBinary(getFullContent());
contentNode.setProperty(JcrConstants.JCR_DATA, binaryContent);
contentNode.setProperty(JcrConstants.JCR_MIMETYPE, getMediaType());
if (getTextualLineCount() != null) {
node.setProperty(TEXTUAL_LINE_COUNT_PROPERTY, getTextualLineCount());