cache JavaMathod