private File createFileNode(final String uuid, final String name, final String contentType, final long size, final long checksum) throws FrameworkException {
String relativeFilePath = File.getDirectoryPath(uuid) + "/" + uuid;
File fileNode = app.create(File.class,
new NodeAttribute(GraphObject.id, uuid),
new NodeAttribute(AbstractNode.name, name),
new NodeAttribute(File.relativeFilePath, relativeFilePath),
new NodeAttribute(File.contentType, contentType),
new NodeAttribute(File.size, size),
new NodeAttribute(File.checksum, checksum),
new NodeAttribute(File.version, 1),
new NodeAttribute(AbstractNode.visibleToPublicUsers, publicVisible),
new NodeAttribute(AbstractNode.visibleToAuthenticatedUsers, authVisible));
return fileNode;
}