Integer paramDepth = request.getParameter("depth") == null ? 2
: Integer.parseInt(request.getParameter("depth"));
try {
ResultSet resultSet = getSizeByPath(request);
NodeData data;
while (resultSet.next()) {
data = new NodeData();
data.fileSize = resultSet.getString("size_in_bytes");
data.nChildren = resultSet.getLong("file_count");
data.path = resultSet.getString("path");
data.leaf = resultSet.getBoolean("leaf");
elems.add(data);