Add java-like api's