Long size = (Long) webSocketData.getNodeData().get("size");
String contentType = (String) webSocketData.getNodeData().get("contentType");
String name = (String) webSocketData.getNodeData().get("name");
FileBase fileNode = (FileBase) newNode;
fileNode.setProperty(File.size, size != null ? size : 0L);
fileNode.setProperty(File.contentType, contentType);
fileNode.setProperty(AbstractNode.name, name);
getWebSocket().createFileUploadHandler(fileNode);
}