// TODO Auto-generated method stub
// return super.hasRole(principal, roleIdentifier);
@Override
	public boolean hasRole(final PrincipalCollection principal, final String roleIdentifier) {
		// TODO Auto-generated method stub
		// return super.hasRole(principal, roleIdentifier);
		for (final Object p : principal.fromRealm(REALM_NAME)) {
			if (p instanceof GenericPrincipal) {
				final GenericPrincipal gp = (GenericPrincipal) p;
				for (final String r : gp.getRoles()) {
					if (r.equals(roleIdentifier)) {
						return true;
					}
				}
			}
		}
		return false;
	}
@Override
public boolean hasRole(final PrincipalCollection principal, final String roleIdentifier) {
// TODO Auto-generated method stub
// return super.hasRole(principal, roleIdentifier);
for (final Object p : principal.fromRealm(REALM_NAME)) {
if (p instanceof GenericPrincipal) {
@Override
public boolean hasRole(final PrincipalCollection principal, final String roleIdentifier) {
// TODO Auto-generated method stub
// return super.hasRole(principal, roleIdentifier);
for (final Object p : principal.fromRealm(REALM_NAME)) {
if (p instanceof GenericPrincipal) {
final GenericPrincipal gp = (GenericPrincipal) p;
for (final String r : gp.getRoles()) {
if (r.equals(roleIdentifier)) {
return true;
}
}
}
}
@Override
public boolean hasRole(final PrincipalCollection principal, final String roleIdentifier) {
// TODO Auto-generated method stub
// return super.hasRole(principal, roleIdentifier);
for (final Object p : principal.fromRealm(REALM_NAME)) {
if (p instanceof GenericPrincipal) {
final GenericPrincipal gp = (GenericPrincipal) p;
for (final String r : gp.getRoles()) {
if (r.equals(roleIdentifier)) {
return true;
}
}
}
}
return false;
}