* @param type - (Queue or Exchange or Connection)
* @param name - item name
*/
private void addItemInConfigFile(TreeObject node)
{
ManagedBean mbean = (ManagedBean) node.getManagedObject();
String server = mbean.getServer().getName();
String virtualhost = mbean.getVirtualHostName();
String type = node.getParent().getName() + "s";
String name = node.getName();
String itemKey = server + "." + virtualhost + "." + type;
// Check if the item already exists in the config file