/**
  * Fill system error information from exception.
  *
  * @param throwable
  * @return
  */
 private ReplicateImageResult fillSystemError(Throwable throwable) {
   ReplicateImageResult result = new ReplicateImageResult(ReplicateImageResultCode.SYSTEM_ERROR);
   result.setError(throwable.getMessage());
   return result;
 }
 /**
  * Fill service not found error information from exception.
  *
  * @param e
  * @return
  */
 private ReplicateImageResult fillServiceNotFoundError(ServiceHost.ServiceNotFoundException e) {
   ReplicateImageResult result =
       new ReplicateImageResult(ReplicateImageResultCode.SERVICE_NOT_FOUND);
   result.setError("ImageReplicatorService is unavailable");
   return result;
 }