@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) {
	
	
		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) { 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; }