String function ( final String arg0 ) { int loc0 = arg0 . indexOf ( "srini_string" ) ; if ( loc0 == - 1 ) { loc0 = arg0 . indexOf ( "srini_string" ) ; } return ( loc0 > - 1 ) ? arg0 . substring ( 0 , loc0 ) : arg0 ; }
get the user name from a principal concode_field_sep PlaceHolder placeHolder concode_field_sep String getPrincipalWithoutRealm