JUnitTestTreeNodeManager () { String junitNodeNamesManagerClassName = System.getProperty(JUnitTestTreeNodeManager.JUNIT_TEST_TREE_NODE_MANAGER_ARGUMENT); JUnitTestTreeNodeManager result = JUnitTestTreeNodeManager.JAVA_NODE_NAMES_MANAGER; if (junitNodeNamesManagerClassName != null) { try { Class<? extends JUnitTestTreeNodeManager> junitNodeNamesManagerClass = Class.forName(junitNodeNamesManagerClassName) .asSubclass(JUnitTestTreeNodeManager.class); result = junitNodeNamesManagerClass.newInstance(); } catch (ClassCastException | ClassNotFoundException | InstantiationException | IllegalAccessException ignored) { } } return result; }