Create a device with sdk

oops, driverContext.getGatewayContext().getPersistenceInterface() will do the job,