The goal is translate Java to Swift