throws NullPointerException {
if (preparedQuery == null) {
throw new NullPointerException(
"The preparedQuery parameter must not be null.");
}
DatastoreTimeoutException dte = null;
long wait = INITIAL_WAIT_MS;
for (int i = 0; i < MAX_RETRY; i++) {
try {
return preparedQuery.asSingleEntity();
} catch (DatastoreTimeoutException e) {