* @param principal Principal for whom the role is to be checked
* @param role Security role to be checked
*/
public boolean hasRole(Principal principal, String role) {
CredentialsToken credToken = new CredentialsToken(principal);
SlideToken slideToken = new SlideTokenImpl(credToken);
try {
return securityHelper.hasRole(slideToken, role);
} catch (SlideException e) {
return (false);