}
private int getMaxLen(String rule, DBIdentifier name, int maxLen) {
IdentifierConfiguration config = getIdentifierConfiguration();
if (maxLen < 1) {
IdentifierRule nrule = config.getIdentifierRule(rule);
maxLen = nrule.getMaxLength();
}
// Subtract delimiter length if name is delimited or will be delimited
if (config.delimitAll() || name.isDelimited()) {
maxLen = maxLen - (config.getLeadingDelimiter().length() + config.getTrailingDelimiter().length());
}