protected PrincipalUser getWardenUser ( String wardenAlertName ) { assert ( wardenAlertName != null ) : "Warden alert name cannot be null." ; int beginIndex = wardenAlertName . indexOf ( "-" ) + 1 ; int endIndex = wardenAlertName . lastIndexOf ( "-" ) ; return PrincipalUser . findByUserName ( emf . get ( ) , wardenAlertName . substring ( beginIndex , endIndex ) ) ; }
From warden alert name de - constructs the user for whom this warden alert is associated with .