protected Dimension getDimension (Node contNode) throws ParseException {
        logger.entering(getClass().getName(), "getDimension", contNode);
        Dimension dimension = null;
        String strValue = getProcessingInstructionValue(contNode, "dimension");
        if (strValue != null) {
            String[] s = strValue.split(" ");
            if (s.length == 2) {
                int width = df.parse(s[0]).intValue();
                int height = df.parse(s[1]).intValue();
                dimension = new Dimension(width, height);
            } else {
                logger.warning("Invalid dimension data found in processing instruction.");
            }
        }
        logger.exiting(getClass().getName(), "getDimension", dimension);
        return dimension;
    }