code: private static void checkErrors(Object object) throws GreenPepperServerException
      {
          if (object instanceof Exception)
          {
              throw new GreenPepperServerException(GreenPepperServerErrorKey.CALL_FAILED, ((Exception)object).getMessage());
          }
          
          if (object instanceof String)
          {
              String msg = (String)object;
              if (!StringUtils.isEmpty(msg) && msg.contains(GreenPepperServerErrorKey.ERROR))
              {
                  String errorId = msg.replace(GreenPepperServerErrorKey.ERROR, "");
                  
                  throw new GreenPepperServerException(errorId, errorId);
              }
          }
      }
docs: Checks if the message is an GreenPepper server tagged Exception.
  If so an GreenPepperServerException will be thrown with the error id found.
  </p>
  @param object the error id found.