String fileNodeType = configuration.getDefFileNodeType();
Node fileNode = parentNode.addNode(onlyName, fileNodeType);
Node dataNode = fileNode.addNode(FtpConst.NodeTypes.JCR_CONTENT, FtpConst.NodeTypes.NT_RESOURCE);
MimeTypeResolver mimeTypeResolver = new MimeTypeResolver();
mimeTypeResolver.setDefaultMimeType(configuration.getDefFileMimeType());
String mimeType = mimeTypeResolver.getMimeType(onlyName);
dataNode.setProperty(FtpConst.NodeTypes.JCR_MIMETYPE, mimeType);
dataNode.setProperty(FtpConst.NodeTypes.JCR_LASTMODIFIED, Calendar.getInstance());