Support java method.