code: public boolean validate(E entity)
      {
          if (entity != null)
          {
              // entity metadata could be null.
              if (entityMetadata == null)
              {
                  throw new IllegalArgumentException(
                          "Entity object is invalid, operation failed. Please check previous log message for details");
              }
  
              return false;
  
          }
  
          // will return false if entity is null.
          return true;
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.validation.rules.IRule#validate(java.lang.Object)