TestNodePresentation (String fullName) { if (fullName == null) { return new TestNodePresentation(null, null); } int lastPointIdx = fullName.lastIndexOf('.'); String name = fullName; String comment = null; if (lastPointIdx >= 0) { name = fullName.substring(lastPointIdx + 1); comment = fullName.substring(0, lastPointIdx); } return new TestNodePresentation(name, comment); }