boolean result = false;  switch(code) { case 1000: case 1001: case 1002: result = true; break; }  return result;
return isConnectorError(getCode());
   public static boolean isConnectorError(int code)   {      boolean result = false;      switch(code)      {         case 1000:         case 1001:         case 1002:            result = true;         break;      }      return result;   }