public boolean replaceEmployee(int id, String name, Employee newEmployee) {
		if (name == null || newEmployee == null) 
			throw new IllegalArgumentException();
		TreeNode found = find(id, name);
		if(found == null){
			return false;
		}else if(found.getEmployee().getTitle().equals(newEmployee.getTitle())){
			try{
				if(!contains(newEmployee.getId(),newEmployee.getName())) {
					found.updateEmployee(newEmployee);
					return true;
				}
				else
					throw new CompanyHierarchyException("Replacing employee already exists on the Company Tree!");
			}catch (CompanyHierarchyException ex){
				throw new CompanyHierarchyException("Id already used!");
			}
		}else {
			throw new CompanyHierarchyException("Replacement title does not match existing title!");
		}
	}