private String prepareGCSelection(ModelElement documentNode, String selStr) throws ParseException { DocumentSelector s = new DocumentSelector(selStr); boolean enableGC = false; if (documentNode != null) { enableGC = documentNode.getBooleanAttribute("garbage-collection", false); } if (!enableGC) { return null; } return s.toString(); }