make translation compatible with jdk1.6
moving cache handling out of the project component