public static String getPropertyName ( String propertyPath ) { int propertySeparatorIndex = PropertyAccessorUtils . getLastNestedPropertySeparatorIndex ( propertyPath ) ; return propertySeparatorIndex == - 1 ? propertyPath : propertyPath . substring ( propertySeparatorIndex + 1 ) ; }
Returns the last component of the specified property path