public static void validateIdentity(String identity) {
        if (StringUtils.isNotEmpty(identity)) {
            if (identity.length() > 64) {
                throw new IllegalArgumentException("identity length should not great than 64");
            }
        }
    }
@author Robert HG (254963746@qq.com) on 7/13/16.
lts-core/src/main/java/com/github/ltsopensource/core/support/ConfigValidator.java