Add missing RecordId api for OSGI modules