Added prepare with auto generated keys returned
Pass in Logger not JavaPlugin