public static String getLastSegment ( final List < PathSegment > segments ) { if ( segments . isEmpty ( ) ) { return "" ; } return segments . get ( segments . size ( ) - 1 ) . getPath ( ) ; }
Get the last path segment .