used ObjectUtils class for not null and not empty conditions