/**
  * Method to create a new CallerInfoAsyncQueryHandler object, ensuring correct state of context
  * and uri.
  */
 private void allocate(Context context, Uri contactRef) {
   if ((context == null) || (contactRef == null)) {
     throw new QueryPoolException("Bad context or query uri.");
   }
   mHandler = new CallerInfoAsyncQueryHandler(context);
   mHandler.mQueryContext = context;
   mHandler.mQueryUri = contactRef;
 }
 /** Releases the relevant data. */
 private void release() {
   mHandler.mQueryContext = null;
   mHandler.mQueryUri = null;
   mHandler.mCallerInfo = null;
   mHandler = null;
 }