protected String extractLastName ( String name ) { if ( StringUtils . isBlank ( name ) ) { return null ; } int lastIndexOf = name . lastIndexOf ( ' ' ) ; if ( lastIndexOf == - 1 ) return null ; else return name . substring ( lastIndexOf + 1 ) ; }
Extracts a last name of full name string