code: public boolean isNullOrEmpty(String attributeName) {
          String attr = attributes.get(attributeName);
          if (attr == null || attr.isEmpty()) {
              return true;
          }
          return false;
      }
docs: Check if the given attribute is present an is not empty.
  @param attributeName the attribute name
  @return true if null or empty