private HierarchicalConfiguration constructHierarchicalConfiguration(String graphName, String graphType, boolean readOnly) {
HierarchicalConfiguration graphConfig = new HierarchicalConfiguration();
graphConfig.addProperty(Tokens.REXSTER_GRAPH_NAME, graphName);
graphConfig.addProperty(Tokens.REXSTER_GRAPH_TYPE, graphType);
graphConfig.addProperty(Tokens.REXSTER_GRAPH_READ_ONLY, readOnly);
ArrayList<HierarchicalConfiguration.Node> listOfNodes = new ArrayList<HierarchicalConfiguration.Node>();
listOfNodes.add(new HierarchicalConfiguration.Node("username", "me"));
listOfNodes.add(new HierarchicalConfiguration.Node("password", "pass"));
graphConfig.addNodes(Tokens.REXSTER_GRAPH_PROPERTIES, listOfNodes);