class Validate {

    public static boolean principalName(String name) {
        if (name == null || name.isEmpty()) {
            return false;
        }
        Matcher matcher = principalPattern.matcher(name);
        return matcher.matches();
    }

}