} else if(errTitle.equals("Bad Query Exception")) {
throw new BadQueryException(errMessage);
} else if(errTitle.equals("Resource Index Not Available Exception")) {
throw new ResourceIndexNotAvailableException(errMessage);
} else if(errTitle.equals("Access Control Exception")) {
throw new AccessControlException(errMessage);
} else {
throw new ResourceIndexNotAvailableException("Unknown error!");
}
}
}