public BSTNode getNameSearchByName(String name) {
		try {

			if (Tmproot == null) {
				Tmproot = root;
			}
			String name1 = Tmproot.getName().toString();
			if (root == null) {
				return null;
			} else {
				if (name.contentEquals(name1)) {
					return Tmproot;
				} else if (Tmproot.getLeft() == null) {
					Tmproot = Tmproot.getRight();
				} else if (Tmproot.getLeft() != null) {
					Tmproot = Tmproot.getLeft();
				}
				getNameSearchByName(name);

			}
		} catch (Exception ex) {
		}
		return Tmproot;
	}