System.out.println("Loading " + ms.getRef());
    private Entity parseEntityLine(String s)        throws Exception    {        try {            StringTokenizer st = new StringTokenizer(s, ",");            String sRef = st.nextToken();            MechSummary ms = MechSummaryCache.getInstance().getMech(sRef);            System.out.println("Loading " + ms.getRef());            if (ms == null) {                throw new Exception("Scenario requires missing entity: " + sRef);            }            Entity e = new MechFileParser(ms.getSourceFile()).getEntity();            e.crew = new Pilot(st.nextToken(), Integer.parseInt(st.nextToken()),                     Integer.parseInt(st.nextToken()));            int nFacing = -1;            if (st.hasMoreTokens()) {                // facing specified                nFacing = findIndex(FACING, st.nextToken());            }            e.setFacing(nFacing);            e.setSecondaryFacing(nFacing);            if (st.hasMoreTokens()) {                // coords specified                e.setPosition(new Coords(Integer.parseInt(st.nextToken()),                         Integer.parseInt(st.nextToken())));            }            else {                // explicitly set to null so a later process can detect it                e.setPosition(null);            }            return e;        } catch (NumberFormatException e) {            e.printStackTrace();            throw new Exception("Unparseable entity line: " + s);        } catch (NoSuchElementException e) {            e.printStackTrace();            throw new Exception("Unparseable entity line: " + s);        }    }