Refactored the logic of addrecord
Fixed to throw BackendException when an error has occured when searching the NDLSearch service