public int indexOf(int gridletId, int userId) {
        int i = 0;
        for (SSGridlet gl : this) {
        	if (gl.getID() == gridletId && gl.getSenderID() == userId) {
        		return i;
        	}
        	i++;
        }
        
        return -1;
    }