private static FileInfo makeFile(NodeInfoFactory nodeInfoFactory, String name) {
FileInfo fileInterface = nodeInfoFactory.makeFileInfo();
if (fileInterface instanceof FileInfoImpl) {
FileInfoImpl file = (FileInfoImpl) fileInterface;
file.setNodeType(TreeNodeInfo.FILE_TYPE);
file.setName(name);
file.setSize("0");
} else {
com.google.collide.dto.server.DtoServerImpls.FileInfoImpl file =
(com.google.collide.dto.server.DtoServerImpls.FileInfoImpl)
fileInterface;
file.setNodeType(TreeNodeInfo.FILE_TYPE);
file.setName(name);
file.setSize("0");
}
return fileInterface;
}