code: public static boolean hasPrefix(String principalName) {
  
          return CmsStringUtil.isNotEmptyOrWhitespaceOnly(principalName)
              && (principalName.trim().toUpperCase().startsWith(PRINCIPAL_ROLE + "."));
      }
docs: Checks if the given String starts with {@link #PRINCIPAL_ROLE} followed by a dot.<p>
  
  <ul>
  <li>Works if the given String is <code>null</code>.
  <li>Removes white spaces around the String before the check.
  <li>Also works with prefixes not being in upper case.
  <li>Does not check if the role after the prefix actually exists.
  </ul>
  
  @param principalName the potential role name to check
  
  @return <code>true</code> in case the String starts with {@link #PRINCIPAL_ROLE}