kmsgenericstructure: Add generic structure to commons

Change-Id: I85d5637c6a6489ddf295be230c89adb7a23ab8f5