code: public static boolean hasText(final String text) {
  		if (text != null && !"".equals(text.trim())) {
  			return true;
  		}
  		return false;
  	}
docs: Method to validate whether the given string is null/empty or has value
  @param text
  @return boolean