Avoid call java method