code: public static void assertNotEmpty(final String pstring, final String pmessage) {
      if (pstring == null || pstring.length() == 0) {
        throw new IllegalArgumentException(pmessage);
      }
    }
docs: check if a string is not empty.
  
  @param pstring string to check
  @param pmessage error message to throw if test fails