This function will look for errors in the object and if found
will return the error message.<br>
If no errors were found, this method will return null.

@param   object
The object holding all the data
@return  The error message (if found) or null
484596
protected String findError(T object)
    {
        String errorMessage=null;
        if(this.errorDetectionPath!=null)
        {
            String value=this.findValue(object,this.errorDetectionPath);
            if(value!=null)
            {
                boolean errorFound=false;
                if(this.errorDetectionValue==null)
                {
                    errorFound=true;
                }
                else if(this.errorDetectionValue.indexOf(value)!=-1)    //look for value in configured value
                {
                    errorFound=true;
                }
                
                if(errorFound)
                {
                    errorMessage=value;
                    if(this.errorMessagePath!=null)
                    {
                        value=this.findValue(object,this.errorMessagePath);
                        if(value!=null)
                        {
                            errorMessage=value;
                        }
                    }
                }
            }
        }
        
        return errorMessage;
    }
970856
public static void assertNull(String message, Object object) {
        if (object == null) {
            return;
        }
        failNotNull(message, object);
    }
1170584
private Long getValue(final Object _object)
    {
        final Long ret;
        if (_object == null) {
            ret = null;
        } else if (_object instanceof Number) {
            ret = ((Number) _object).longValue();
        } else {
            ret = NumberUtils.toLong(_object.toString());
        }
        return ret;
    }
1048741
public boolean containsErrors(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetErrors().getMap().containsKey(key);
  }
757359
@SuppressWarnings("unchecked")
    protected JsonObject paramError(Map<String, Object> errors) {
        JsonObject json = JsonObject.create();
        json.setStatus(GlobalResponseStatusMsg.SYSTEM_ERROR.getMessage().getCode());
        Map<String, Object> error = new HashMap<String, Object>();
        error.put(WebResponseConstant.MESSAGE_FIELD, errors);
        json.setStatusInfo(error);
        return json;
    }
713230
private Map<String, Object> extractErrorDetailsFromResponse(ClientHttpResponse response) throws IOException {
		ObjectMapper mapper = new ObjectMapper(new JsonFactory());
		try {
			return mapper.<Map<String, Object>> readValue(response.getBody(), new TypeReference<Map<String, Object>>() {
			});
		} catch (JsonParseException e) {
			return null;
		}
	}
144603
boolean isProtoBufMessageObject(Object object) {
        if (object == null) {
            return false;
        }
        if (MULTIPLE_CLASSLOADER) {
            return object instanceof MessageLite || isProtoBufMessageClass(object.getClass());
        } else {
            return object instanceof MessageLite;
        }
    }
1134322
@Nonnull
  public static <T> T assertNotNull(@Nullable final T object) {
    return assertNotNull(null, object);
  }
337755
public final void error(Object pObject)
	{
		getLogger().log(FQCN, Level.ERROR, pObject, null);
	}
336416
public static String objDesc(Object object) {
        return object == null ? "null" : (object.getClass().getName()+'@'+Integer.toHexString(object.hashCode()));
    }
496341
@NonNull
  public static <T> T assertNotNull(T object, String item) {
    if (object == null) {
      throw new NullPointerException(item + " == null");
    }
    return object;
  }
654738
public V getValue(T object) {
        try {
            if (this.getMethod != null) {
                return (V)this.getMethod.invoke(object);
            } else {
                return (V)this.field.get(object);
            }
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        } catch (InvocationTargetException e) {
            throw new RuntimeException(e);
        }
    }
1035522
public static String getClassName(final Object object) {

    return object != null ? object.getClass().getName() : NULL_STRING;
  }
1166753
@Nullable
  public static <T> T assertNull(@Nullable final T object) {
    return assertNull(null, object);
  }
194004
public static <T> T checkNotNull(T argument, String errorMessage) {
        if (argument == null) {
            throw new NullPointerException(errorMessage);
        }
        return argument;
    }
966896
public void validateNull(Object object, String name, String message) {
        if (object != null) {
            addError(name, Optional.ofNullable(message).orElse(messages.get(Validation.NULL_KEY.name(), name)));
        }
    }
323101
public String getErrorMessage(IOException e) {
    // Prefer to use message from GJRE.
    GoogleJsonResponseException gjre = getJsonResponseExceptionOrNull(e);

    if (gjre != null && gjre.getDetails() != null) {
      return gjre.getDetails().getMessage();
    }
    return e.getMessage();
  }