}
public void createDocument(NodeRef folderRef, Content content) {
String fileName = content.getName();
FileInfo fileInfo = serviceRegistry.getFileFolderService().create(folderRef, fileName,
ContentModel.TYPE_CONTENT);
NodeRef fileNodeRef = fileInfo.getNodeRef();
serviceRegistry.getNodeService().addAspect(fileNodeRef, ContentModel.ASPECT_AUTHOR, null);
serviceRegistry.getNodeService().addAspect(fileNodeRef, ContentModel.ASPECT_TITLED, null);
Map<QName, Serializable> props = serviceRegistry.getNodeService().getProperties(fileNodeRef);
props.put(ContentModel.PROP_CREATED, new Date());
String currentUserName = serviceRegistry.getAuthenticationService().getCurrentUserName();