String suffix;
if ((connectorName.matches("[a-z0-9]+[a-z0-9_]*")) &&
((connectorName.length() + prefix.length()) <= maxLength)) {
suffix = connectorName;
} else {
BasicChecksumGenerator sumGen = new BasicChecksumGenerator("MD5");
suffix = sumGen.getChecksum(connectorName);
if (prefix.length() + suffix.length() > maxLength) {
suffix = suffix.substring(0, maxLength - prefix.length());
}
}
// TODO: Match case of vendor identifiers?