MongoDatabase mongoDatabase = (MongoDatabase) userObject;
super.getTreeCellRendererComponent(mongoTree, mongoDatabase.getName(), isSelected, isExpanded, isLeaf, row, focus);
setIcon(MONGO_DATABASE);
return this;
} else if (userObject instanceof MongoCollection) {
MongoCollection mongoCollection = (MongoCollection) userObject;
super.getTreeCellRendererComponent(mongoTree, mongoCollection.getName(), isSelected, isExpanded, isLeaf, row, focus);
setIcon(MONGO_COLLECTION);
return this;
} else {
return super.getTreeCellRendererComponent(mongoTree, value, isSelected, isExpanded, isLeaf, row, focus);
}