code: public ORole checkIfAllowed(final String iResource, final int iOperation) {
  		for (ORole r : roles)
  			if (r.allow(iResource, iOperation))
  				return r;
  
  		return null;
  	}
docs: Checks if the user has the permission to access to the requested resource for the requested operation.
  
  @param iResource
  Requested resource
  @param iOperation
  Requested operation
  @return The role that has granted the permission if any, otherwise null