if (log.isWarnEnabled()) {
log.warn(String.format("Property names were never initialized; assigning default property name (%s) to class name %s.", propertyName, className));
}
} else if (propertyNames.isEmpty()) {
if (log.isWarnEnabled()) {
log.warn(String.format("Property names were initialized to the empty set; assigning default property name (%s) to class name %s.", propertyName, className));
}
} else {
propertyName = propertyNames.get(packageName);
while (propertyName == null && packageName != null && !packageName.isEmpty()) {
final int dotIndex = Math.max(0, packageName.lastIndexOf('.'));