Add PostScore method to java side