see https://github.com/fhanik/uaa/commit/ea460bcd6f6a218372a41610cd2ac8a132e9e6fb