Validates entity and returns a list of errors
entity
This method will return an empty list if no validation error is found
ErrorList validate(Object entity);