text: public RevTree parseTree(AnyObjectId id)throws MissingObjectException, IncorrectObjectTypeException,IOException {RevObject c = peel(parseAny(id));final RevTree t;if (c instanceof RevCommit)t = ((RevCommit) c).getTree();else if (!(c instanceof RevTree))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_TREE);elset = (RevTree) c;parseHeaders(t);return t;}