add Java create-entry sample