public RecordContainer getRecord(int typeId) { final int PRIMITIVE_TYPES_COUNT = 6; return (RecordContainer) records.elementAt(typeId - PRIMITIVE_TYPES_COUNT); }