Fixed api inconsistency. Updated version in pom due to api change.