try {
@SuppressWarnings("unchecked")
List<Object[]> result = (List<Object[]>) query.execute(userID);
List<MindMapInfo> mminfos = new LinkedList<MindMapInfo>();
for (Object[] resultRow : result) {
mminfos.add(new MindMapInfo(KeyFactory
.keyToString((Key) resultRow[0]), (String) resultRow[1]));
}
return mminfos;
} finally {
pm.close();