code: 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;
      }
docs: 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