import org.apache.commons.lang3.StringUtils;
<dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6</version> </dependency>
if (StringUtils.isNotBlank(username)){ }
import org.apache.commons.lang3.StringUtils;
<dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6</version> </dependency>
if (StringUtils.isNotBlank(username)){ }