"""
#######################################################################

CCPN Data Model version 2.1.2

Autogenerated by PyXmlMapWrite revision 1.29 on Mon Mar  2 17:24:11 2015
  from data model element ccp.lims.Sample revision ?

#######################################################################
======================COPYRIGHT/LICENSE START==========================

Sample.py: python XML-I/O-mapping for CCPN data model, MetaPackage ccp.lims.Sample

Copyright (C) 2007 Anne Pajon (MSD group, EBI)

=======================================================================

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
 
A copy of this license can be found in ../../../../license/LGPL.license
 
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
 
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


======================COPYRIGHT/LICENSE END============================

for further information, please contact :

- PIMS website (http://www.pims-lims.org)

- email: Anne Pajon, pajon@ebi.ac.uk

=======================================================================

If you are using this software for academic purposes, we suggest
quoting the following references:

===========================REFERENCE START=============================
A. Pajon, J. Ionides, J. Diprose, J. Fillon, R. Fogh, A.W. Ashton,
H. Berman, W. Boucher, M. Cygler, E. Deleury, R. Esnouf, J. Janin, R. Kim,
I. Krimm, C.L. Lawson, E. Oeuillet, A. Poupon, S. Raymond, T. Stevens,
H. van Tilbeurgh, J. Westbrook, P. Wood, E. Ulrich, W. Vranken, L. Xueli,
E. Laue, D.I. Stuart, and K. Henrick (2005). Design of a Data Model for
Developing Laboratory Information Management and Analysis Systems for
Protein Production. Proteins: Structure, Function and Bioinformatics 58,
278-284.


This file was generated with the Memops software generation framework,
and contains original contributions embedded in the framework

===========================REFERENCE END===============================
"""
from memops.general.Constants import baseDataTypeModule as basicDataTypes
# 
#  Current package api
import ccp.api.lims.Sample

def makeMapping(globalMap):
  """
  generates XML I/O mapping for package SAM, adding it to globalMap
  """
  
  from memops.xml.Implementation import bool2str, str2bool

  # Set up top level dictionaries
  loadMaps = globalMap.get('loadMaps')
  mapsByGuid = globalMap.get('mapsByGuid')

  abstractTypes = globalMap.get('SAM').get('abstractTypes')
  exolinks = globalMap.get('SAM').get('exolinks')

  # DataType AmountUnit
  currentMap = {}
  abstractTypes['AmountUnit'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00006'] = currentMap
  loadMaps['SAM.AmountUnit'] = currentMap
  currentMap['tag'] = 'SAM.AmountUnit'
  currentMap['type'] = 'simple'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00006'
  currentMap['toStr'] = 'text'
  currentMap['cnvrt'] = 'text'

  # DataType ConcentrationUnit
  currentMap = {}
  abstractTypes['ConcentrationUnit'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00005'] = currentMap
  loadMaps['SAM.ConcentrationUnit'] = currentMap
  currentMap['tag'] = 'SAM.ConcentrationUnit'
  currentMap['type'] = 'simple'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00005'
  currentMap['toStr'] = 'text'
  currentMap['cnvrt'] = 'text'

  # DataType Solvent
  currentMap = {}
  abstractTypes['Solvent'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2009-11-19-14:50:32_00005'] = currentMap
  loadMaps['SAM.Solvent'] = currentMap
  currentMap['tag'] = 'SAM.Solvent'
  currentMap['type'] = 'simple'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2009-11-19-14:50:32_00005'
  currentMap['toStr'] = 'text'
  currentMap['cnvrt'] = 'text'

  # Class AbstractSample
  currentMap = {}
  abstractTypes['AbstractSample'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00007'] = currentMap
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00007'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'abstractSamples'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Sample.AbstractSample
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute AbstractSample.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute AbstractSample.details
  currentMap = {}
  contentMap['details'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00009'] = currentMap
  loadMaps['SAM.AbstractSample.details'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.details'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00009'
  currentMap['name'] = 'details'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['proc'] = 'direct'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00035')

  # Attribute AbstractSample.ionicStrength
  currentMap = {}
  contentMap['ionicStrength'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00006'] = currentMap
  loadMaps['SAM.AbstractSample.ionicStrength'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.ionicStrength'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00006'
  currentMap['name'] = 'ionicStrength'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute AbstractSample.isActive
  currentMap = {}
  contentMap['isActive'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00008'] = currentMap
  loadMaps['SAM.AbstractSample.isActive'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.isActive'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00008'
  currentMap['name'] = 'isActive'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00028')

  # Attribute AbstractSample.isHazard
  currentMap = {}
  contentMap['isHazard'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00007'] = currentMap
  loadMaps['SAM.AbstractSample.isHazard'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.isHazard'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00007'
  currentMap['name'] = 'isHazard'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00028')

  # Attribute AbstractSample.name
  currentMap = {}
  contentMap['name'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00004'] = currentMap
  loadMaps['SAM.AbstractSample.name'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.name'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00004'
  currentMap['name'] = 'name'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033')

  # Attribute AbstractSample.ph
  currentMap = {}
  contentMap['ph'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00005'] = currentMap
  loadMaps['SAM.AbstractSample.ph'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.ph'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00005'
  currentMap['name'] = 'ph'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute AbstractSample.solvent
  currentMap = {}
  contentMap['solvent'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2012-03-28-17:22:44_00014'] = currentMap
  loadMaps['SAM.AbstractSample.solvent'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.solvent'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2012-03-28-17:22:44_00014'
  currentMap['name'] = 'solvent'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2009-11-19-14:50:32_00005')

  # Role AbstractSample.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role AbstractSample.hazardPhrases
  currentMap = {}
  contentMap['hazardPhrases'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:23:28_00013'] = currentMap
  loadMaps['SAM.AbstractSample.hazardPhrases'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.hazardPhrases'
  currentMap['type'] = 'exolink'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:23:28_00013'
  currentMap['name'] = 'hazardPhrases'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['copyOverride'] = True
  currentMap['content'] = globalMap.get('CLAS').get('exolinks')

  # Role AbstractSample.sampleCategories
  currentMap = {}
  contentMap['sampleCategories'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00003'] = currentMap
  loadMaps['SAM.AbstractSample.sampleCategories'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.sampleCategories'
  currentMap['type'] = 'exolink'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00003'
  currentMap['name'] = 'sampleCategories'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['copyOverride'] = True
  currentMap['content'] = globalMap.get('CLAS').get('exolinks')

  # Role AbstractSample.sampleComponents
  currentMap = {}
  contentMap['sampleComponents'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00001'] = currentMap
  loadMaps['SAM.AbstractSample.sampleComponents'] = currentMap
  currentMap['tag'] = 'SAM.AbstractSample.sampleComponents'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00001'
  currentMap['name'] = 'sampleComponents'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['content'] = globalMap.get('SAM').get('abstractTypes')
  # End of AbstractSample

  currentMap = abstractTypes.get('AbstractSample')
  aList = ['ionicStrength', 'isActive', 'isHazard', 'ph']
  currentMap['headerAttrs'] = aList
  aList = ['details', 'name', 'solvent']
  currentMap['simpleAttrs'] = aList
  aList = ['sampleComponents', 'sampleCategories', 'hazardPhrases', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList
  aList = ['sampleComponents']
  currentMap['children'] = aList

  # Class RefSampleSource
  currentMap = {}
  abstractTypes['RefSampleSource'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00008'] = currentMap
  loadMaps['SAM.RefSampleSource'] = currentMap
  currentMap['tag'] = 'SAM.RefSampleSource'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00008'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'refSampleSources'
  currentMap['objkey'] = 'catalogNum'
  currentMap['class'] = ccp.api.lims.Sample.RefSampleSource
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute RefSampleSource.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute RefSampleSource.catalogNum
  currentMap = {}
  contentMap['catalogNum'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00017'] = currentMap
  loadMaps['SAM.RefSampleSource.catalogNum'] = currentMap
  currentMap['tag'] = 'SAM.RefSampleSource.catalogNum'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00017'
  currentMap['name'] = 'catalogNum'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033')

  # Attribute RefSampleSource.dataPageUrl
  currentMap = {}
  contentMap['dataPageUrl'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00018'] = currentMap
  loadMaps['SAM.RefSampleSource.dataPageUrl'] = currentMap
  currentMap['tag'] = 'SAM.RefSampleSource.dataPageUrl'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00018'
  currentMap['name'] = 'dataPageUrl'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00036')

  # Role RefSampleSource.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role RefSampleSource.supplier
  currentMap = {}
  contentMap['supplier'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00016'] = currentMap
  loadMaps['SAM.RefSampleSource.supplier'] = currentMap
  currentMap['tag'] = 'SAM.RefSampleSource.supplier'
  currentMap['type'] = 'exolink'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00016'
  currentMap['name'] = 'supplier'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['eType'] = 'cplx'
  currentMap['copyOverride'] = True
  currentMap['content'] = globalMap.get('AFFI').get('exolinks')
  # End of RefSampleSource

  currentMap = abstractTypes.get('RefSampleSource')
  aList = ['catalogNum', 'dataPageUrl']
  currentMap['simpleAttrs'] = aList
  aList = ['supplier', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class SampleComponent
  currentMap = {}
  abstractTypes['SampleComponent'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00002'] = currentMap
  loadMaps['SAM.SampleComponent'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00002'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'sampleComponents'
  currentMap['objkey'] = 'serial'
  currentMap['class'] = ccp.api.lims.Sample.SampleComponent
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute SampleComponent.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute SampleComponent.concDisplayUnit
  currentMap = {}
  contentMap['concDisplayUnit'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00004'] = currentMap
  loadMaps['SAM.SampleComponent.concDisplayUnit'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.concDisplayUnit'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00004'
  currentMap['name'] = 'concDisplayUnit'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00037')

  # Attribute SampleComponent.concentration
  currentMap = {}
  contentMap['concentration'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00001'] = currentMap
  loadMaps['SAM.SampleComponent.concentration'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.concentration'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00001'
  currentMap['name'] = 'concentration'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute SampleComponent.concentrationError
  currentMap = {}
  contentMap['concentrationError'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00002'] = currentMap
  loadMaps['SAM.SampleComponent.concentrationError'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.concentrationError'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00002'
  currentMap['name'] = 'concentrationError'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute SampleComponent.concentrationUnit
  currentMap = {}
  contentMap['concentrationUnit'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00003'] = currentMap
  loadMaps['SAM.SampleComponent.concentrationUnit'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.concentrationUnit'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00003'
  currentMap['name'] = 'concentrationUnit'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00005')

  # Attribute SampleComponent.details
  currentMap = {}
  contentMap['details'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00006'] = currentMap
  loadMaps['SAM.SampleComponent.details'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.details'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00006'
  currentMap['name'] = 'details'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['proc'] = 'direct'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00035')

  # Attribute SampleComponent.purity
  currentMap = {}
  contentMap['purity'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00005'] = currentMap
  loadMaps['SAM.SampleComponent.purity'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.purity'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00005'
  currentMap['name'] = 'purity'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute SampleComponent.serial
  currentMap = {}
  contentMap['serial'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:43_00001'] = currentMap
  loadMaps['SAM.SampleComponent.serial'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.serial'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:43_00001'
  currentMap['name'] = 'serial'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00032')

  # Role SampleComponent.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role SampleComponent.container
  currentMap = {}
  contentMap['container'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:42_00004'] = currentMap
  loadMaps['SAM.SampleComponent.container'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.container'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:42_00004'
  currentMap['name'] = 'container'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True

  # Role SampleComponent.contents
  currentMap = {}
  contentMap['contents'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:42_00003'] = currentMap
  loadMaps['SAM.SampleComponent.contents'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.contents'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:42_00003'
  currentMap['name'] = 'contents'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = False

  # Role SampleComponent.refComponent
  currentMap = {}
  contentMap['refComponent'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:42_00002'] = currentMap
  loadMaps['SAM.SampleComponent.refComponent'] = currentMap
  currentMap['tag'] = 'SAM.SampleComponent.refComponent'
  currentMap['type'] = 'exolink'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:42_00002'
  currentMap['name'] = 'refComponent'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['eType'] = 'cplx'
  currentMap['copyOverride'] = True
  currentMap['content'] = globalMap.get('REFS').get('exolinks')
  # End of SampleComponent

  currentMap = abstractTypes.get('SampleComponent')
  aList = ['concDisplayUnit', 'concentration', 'concentrationError', 'concentrationUnit', 'purity', 'serial']
  currentMap['headerAttrs'] = aList
  aList = ['details', 'contents']
  currentMap['simpleAttrs'] = aList
  aList = ['container']
  currentMap['optLinks'] = aList
  aList = ['refComponent', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class SampleStore
  currentMap = {}
  abstractTypes['SampleStore'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-05-12:37:24_00008'] = currentMap
  loadMaps['SAM.SampleStore'] = currentMap
  currentMap['tag'] = 'SAM.SampleStore'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-05-12:37:24_00008'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'sampleStores'
  currentMap['isTop'] = True
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Sample.SampleStore
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute SampleStore.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute SampleStore.createdBy
  contentMap['createdBy'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:00:59_00002__www.ccpn.ac.uk_Fogh_2007-10-03-14:53:27_00001__www.ccpn.ac.uk_Fogh_2006-09-14-16:28:57_00002')

  # Attribute SampleStore.guid
  contentMap['guid'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:26_00002')

  # Attribute SampleStore.isModifiable
  contentMap['isModifiable'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-17-14:16:26_00010__www.ccpn.ac.uk_Fogh_2007-10-03-14:53:27_00001__www.ccpn.ac.uk_Fogh_2006-09-14-16:28:57_00002')

  # Attribute SampleStore.lastUnlockedBy
  contentMap['lastUnlockedBy'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:00:59_00003__www.ccpn.ac.uk_Fogh_2007-10-03-14:53:27_00001__www.ccpn.ac.uk_Fogh_2006-09-14-16:28:57_00002')

  # Attribute SampleStore.name
  currentMap = {}
  contentMap['name'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-05-12:37:28_00006'] = currentMap
  loadMaps['SAM.SampleStore.name'] = currentMap
  currentMap['tag'] = 'SAM.SampleStore.name'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-05-12:37:28_00006'
  currentMap['name'] = 'name'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033')

  # Role SampleStore.abstractSamples
  currentMap = {}
  contentMap['abstractSamples'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-05-12:37:28_00005'] = currentMap
  loadMaps['SAM.SampleStore.abstractSamples'] = currentMap
  currentMap['tag'] = 'SAM.SampleStore.abstractSamples'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-05-12:37:28_00005'
  currentMap['name'] = 'abstractSamples'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('SAM').get('abstractTypes')

  # Role SampleStore.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')
  # End of SampleStore

  currentMap = abstractTypes.get('SampleStore')
  aList = ['createdBy', 'guid', 'isModifiable', 'lastUnlockedBy']
  currentMap['headerAttrs'] = aList
  aList = ['name']
  currentMap['simpleAttrs'] = aList
  aList = ['abstractSamples', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList
  aList = ['abstractSamples']
  currentMap['children'] = aList

  # Class RefSample
  currentMap = {}
  abstractTypes['RefSample'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00003'] = currentMap
  loadMaps['SAM.RefSample'] = currentMap
  currentMap['tag'] = 'SAM.RefSample'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00003'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'abstractSamples'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Sample.RefSample
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute RefSample.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute RefSample.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00009')

  # Attribute RefSample.ionicStrength
  contentMap['ionicStrength'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00006')

  # Attribute RefSample.isActive
  contentMap['isActive'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00008')

  # Attribute RefSample.isHazard
  contentMap['isHazard'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00007')

  # Attribute RefSample.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00004')

  # Attribute RefSample.ph
  contentMap['ph'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00005')

  # Attribute RefSample.solvent
  contentMap['solvent'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2012-03-28-17:22:44_00014')

  # Role RefSample.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role RefSample.conformings
  currentMap = {}
  contentMap['conformings'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00002'] = currentMap
  loadMaps['SAM.RefSample.conformings'] = currentMap
  currentMap['tag'] = 'SAM.RefSample.conformings'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00002'
  currentMap['name'] = 'conformings'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = False

  # Role RefSample.hazardPhrases
  contentMap['hazardPhrases'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:23:28_00013')

  # Role RefSample.refSamplePositions
  currentMap = {}
  contentMap['refSamplePositions'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00010'] = currentMap
  loadMaps['SAM.RefSample.refSamplePositions'] = currentMap
  currentMap['tag'] = 'SAM.RefSample.refSamplePositions'
  currentMap['type'] = 'exolink'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00010'
  currentMap['name'] = 'refSamplePositions'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['copyOverride'] = False
  currentMap['content'] = globalMap.get('HOLD').get('exolinks')

  # Role RefSample.refSampleSources
  currentMap = {}
  contentMap['refSampleSources'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00008'] = currentMap
  loadMaps['SAM.RefSample.refSampleSources'] = currentMap
  currentMap['tag'] = 'SAM.RefSample.refSampleSources'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00008'
  currentMap['name'] = 'refSampleSources'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['content'] = globalMap.get('SAM').get('abstractTypes')

  # Role RefSample.sampleCategories
  contentMap['sampleCategories'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00003')

  # Role RefSample.sampleComponents
  contentMap['sampleComponents'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00001')
  # End of RefSample

  currentMap = abstractTypes.get('RefSample')
  aList = ['ionicStrength', 'isActive', 'isHazard', 'ph']
  currentMap['headerAttrs'] = aList
  aList = ['details', 'name', 'solvent', 'conformings']
  currentMap['simpleAttrs'] = aList
  aList = ['sampleComponents', 'refSampleSources', 'sampleCategories', 'refSamplePositions', 'hazardPhrases', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList
  aList = ['refSampleSources', 'sampleComponents']
  currentMap['children'] = aList

  # Class Sample
  currentMap = {}
  abstractTypes['Sample'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00001'] = currentMap
  loadMaps['SAM.Sample'] = currentMap
  currentMap['tag'] = 'SAM.Sample'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00001'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'abstractSamples'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Sample.Sample
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute Sample.amountDisplayUnit
  currentMap = {}
  contentMap['amountDisplayUnit'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00011'] = currentMap
  loadMaps['SAM.Sample.amountDisplayUnit'] = currentMap
  currentMap['tag'] = 'SAM.Sample.amountDisplayUnit'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00011'
  currentMap['name'] = 'amountDisplayUnit'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00037')

  # Attribute Sample.amountUnit
  currentMap = {}
  contentMap['amountUnit'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00010'] = currentMap
  loadMaps['SAM.Sample.amountUnit'] = currentMap
  currentMap['tag'] = 'SAM.Sample.amountUnit'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00010'
  currentMap['name'] = 'amountUnit'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00006')

  # Attribute Sample.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute Sample.batchNum
  currentMap = {}
  contentMap['batchNum'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00013'] = currentMap
  loadMaps['SAM.Sample.batchNum'] = currentMap
  currentMap['tag'] = 'SAM.Sample.batchNum'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00013'
  currentMap['name'] = 'batchNum'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00037')

  # Attribute Sample.colPosition
  currentMap = {}
  contentMap['colPosition'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00005'] = currentMap
  loadMaps['SAM.Sample.colPosition'] = currentMap
  currentMap['tag'] = 'SAM.Sample.colPosition'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00005'
  currentMap['name'] = 'colPosition'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['proc'] = 'direct'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00032')

  # Attribute Sample.currentAmount
  currentMap = {}
  contentMap['currentAmount'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00009'] = currentMap
  loadMaps['SAM.Sample.currentAmount'] = currentMap
  currentMap['tag'] = 'SAM.Sample.currentAmount'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00009'
  currentMap['name'] = 'currentAmount'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute Sample.currentAmountFlag
  currentMap = {}
  contentMap['currentAmountFlag'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00012'] = currentMap
  loadMaps['SAM.Sample.currentAmountFlag'] = currentMap
  currentMap['tag'] = 'SAM.Sample.currentAmountFlag'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00012'
  currentMap['name'] = 'currentAmountFlag'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00028')

  # Attribute Sample.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00009')

  # Attribute Sample.initialAmount
  currentMap = {}
  contentMap['initialAmount'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00008'] = currentMap
  loadMaps['SAM.Sample.initialAmount'] = currentMap
  currentMap['tag'] = 'SAM.Sample.initialAmount'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00008'
  currentMap['name'] = 'initialAmount'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute Sample.ionicStrength
  contentMap['ionicStrength'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00006')

  # Attribute Sample.isActive
  contentMap['isActive'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00008')

  # Attribute Sample.isHazard
  contentMap['isHazard'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00007')

  # Attribute Sample.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00004')

  # Attribute Sample.ph
  contentMap['ph'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00005')

  # Attribute Sample.rowPosition
  currentMap = {}
  contentMap['rowPosition'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00004'] = currentMap
  loadMaps['SAM.Sample.rowPosition'] = currentMap
  currentMap['tag'] = 'SAM.Sample.rowPosition'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00004'
  currentMap['name'] = 'rowPosition'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['proc'] = 'direct'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00032')

  # Attribute Sample.solvent
  contentMap['solvent'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2012-03-28-17:22:44_00014')

  # Attribute Sample.subPosition
  currentMap = {}
  contentMap['subPosition'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00006'] = currentMap
  loadMaps['SAM.Sample.subPosition'] = currentMap
  currentMap['tag'] = 'SAM.Sample.subPosition'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00006'
  currentMap['name'] = 'subPosition'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['proc'] = 'direct'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00032')

  # Role Sample.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role Sample.hazardPhrases
  contentMap['hazardPhrases'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:23:28_00013')

  # Role Sample.holder
  currentMap = {}
  contentMap['holder'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:23:27_00003'] = currentMap
  loadMaps['SAM.Sample.holder'] = currentMap
  currentMap['tag'] = 'SAM.Sample.holder'
  currentMap['type'] = 'exolink'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:23:27_00003'
  currentMap['name'] = 'holder'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['copyOverride'] = True
  currentMap['content'] = globalMap.get('HOLD').get('exolinks')

  # Role Sample.refSample
  currentMap = {}
  contentMap['refSample'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00003'] = currentMap
  loadMaps['SAM.Sample.refSample'] = currentMap
  currentMap['tag'] = 'SAM.Sample.refSample'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00003'
  currentMap['name'] = 'refSample'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True

  # Role Sample.sampleCategories
  contentMap['sampleCategories'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00003')

  # Role Sample.sampleComponents
  contentMap['sampleComponents'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00001')
  # End of Sample

  currentMap = abstractTypes.get('Sample')
  aList = ['amountDisplayUnit', 'amountUnit', 'batchNum', 'colPosition', 'currentAmount', 'currentAmountFlag', 'initialAmount', 'ionicStrength', 'isActive', 'isHazard', 'ph', 'rowPosition', 'subPosition']
  currentMap['headerAttrs'] = aList
  aList = ['details', 'name', 'solvent']
  currentMap['simpleAttrs'] = aList
  aList = ['refSample']
  currentMap['optLinks'] = aList
  aList = ['sampleComponents', 'sampleCategories', 'holder', 'hazardPhrases', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList
  aList = ['sampleComponents']
  currentMap['children'] = aList

  # Class CrystalSample
  currentMap = {}
  abstractTypes['CrystalSample'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00004'] = currentMap
  loadMaps['SAM.CrystalSample'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00004'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'abstractSamples'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Sample.CrystalSample
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute CrystalSample.a
  currentMap = {}
  contentMap['a'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00018'] = currentMap
  loadMaps['SAM.CrystalSample.a'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.a'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00018'
  currentMap['name'] = 'a'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.alpha
  currentMap = {}
  contentMap['alpha'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00003'] = currentMap
  loadMaps['SAM.CrystalSample.alpha'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.alpha'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00003'
  currentMap['name'] = 'alpha'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.amountDisplayUnit
  contentMap['amountDisplayUnit'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00011')

  # Attribute CrystalSample.amountUnit
  contentMap['amountUnit'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00010')

  # Attribute CrystalSample.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute CrystalSample.b
  currentMap = {}
  contentMap['b'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00001'] = currentMap
  loadMaps['SAM.CrystalSample.b'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.b'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00001'
  currentMap['name'] = 'b'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.batchNum
  contentMap['batchNum'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00013')

  # Attribute CrystalSample.beta
  currentMap = {}
  contentMap['beta'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00004'] = currentMap
  loadMaps['SAM.CrystalSample.beta'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.beta'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00004'
  currentMap['name'] = 'beta'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.c
  currentMap = {}
  contentMap['c'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00002'] = currentMap
  loadMaps['SAM.CrystalSample.c'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.c'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00002'
  currentMap['name'] = 'c'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.colPosition
  contentMap['colPosition'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00005')

  # Attribute CrystalSample.colour
  currentMap = {}
  contentMap['colour'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00014'] = currentMap
  loadMaps['SAM.CrystalSample.colour'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.colour'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00014'
  currentMap['name'] = 'colour'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00036')

  # Attribute CrystalSample.crystalType
  currentMap = {}
  contentMap['crystalType'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00013'] = currentMap
  loadMaps['SAM.CrystalSample.crystalType'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.crystalType'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00013'
  currentMap['name'] = 'crystalType'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00036')

  # Attribute CrystalSample.currentAmount
  contentMap['currentAmount'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00009')

  # Attribute CrystalSample.currentAmountFlag
  contentMap['currentAmountFlag'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00012')

  # Attribute CrystalSample.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00009')

  # Attribute CrystalSample.gamma
  currentMap = {}
  contentMap['gamma'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00005'] = currentMap
  loadMaps['SAM.CrystalSample.gamma'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.gamma'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:45_00005'
  currentMap['name'] = 'gamma'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.initialAmount
  contentMap['initialAmount'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00008')

  # Attribute CrystalSample.ionicStrength
  contentMap['ionicStrength'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00006')

  # Attribute CrystalSample.isActive
  contentMap['isActive'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00008')

  # Attribute CrystalSample.isHazard
  contentMap['isHazard'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00007')

  # Attribute CrystalSample.morphology
  currentMap = {}
  contentMap['morphology'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00012'] = currentMap
  loadMaps['SAM.CrystalSample.morphology'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.morphology'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00012'
  currentMap['name'] = 'morphology'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00036')

  # Attribute CrystalSample.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00004')

  # Attribute CrystalSample.ph
  contentMap['ph'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00005')

  # Attribute CrystalSample.rowPosition
  contentMap['rowPosition'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00004')

  # Attribute CrystalSample.solvent
  contentMap['solvent'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2012-03-28-17:22:44_00014')

  # Attribute CrystalSample.spaceGroup
  currentMap = {}
  contentMap['spaceGroup'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00011'] = currentMap
  loadMaps['SAM.CrystalSample.spaceGroup'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.spaceGroup'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00011'
  currentMap['name'] = 'spaceGroup'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00037')

  # Attribute CrystalSample.subPosition
  contentMap['subPosition'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00006')

  # Attribute CrystalSample.x
  currentMap = {}
  contentMap['x'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00015'] = currentMap
  loadMaps['SAM.CrystalSample.x'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.x'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00015'
  currentMap['name'] = 'x'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.y
  currentMap = {}
  contentMap['y'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00016'] = currentMap
  loadMaps['SAM.CrystalSample.y'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.y'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00016'
  currentMap['name'] = 'y'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Attribute CrystalSample.z
  currentMap = {}
  contentMap['z'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00017'] = currentMap
  loadMaps['SAM.CrystalSample.z'] = currentMap
  currentMap['tag'] = 'SAM.CrystalSample.z'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:44_00017'
  currentMap['name'] = 'z'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00031')

  # Role CrystalSample.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role CrystalSample.hazardPhrases
  contentMap['hazardPhrases'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:23:28_00013')

  # Role CrystalSample.holder
  contentMap['holder'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:23:27_00003')

  # Role CrystalSample.refSample
  contentMap['refSample'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:41_00003')

  # Role CrystalSample.sampleCategories
  contentMap['sampleCategories'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00003')

  # Role CrystalSample.sampleComponents
  contentMap['sampleComponents'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-18:22:46_00001')
  # End of CrystalSample

  currentMap = abstractTypes.get('CrystalSample')
  aList = ['a', 'alpha', 'amountDisplayUnit', 'amountUnit', 'b', 'batchNum', 'beta', 'c', 'colPosition', 'currentAmount', 'currentAmountFlag', 'gamma', 'initialAmount', 'ionicStrength', 'isActive', 'isHazard', 'ph', 'rowPosition', 'spaceGroup', 'subPosition', 'x', 'y', 'z']
  currentMap['headerAttrs'] = aList
  aList = ['colour', 'crystalType', 'details', 'morphology', 'name', 'solvent']
  currentMap['simpleAttrs'] = aList
  aList = ['refSample']
  currentMap['optLinks'] = aList
  aList = ['sampleComponents', 'sampleCategories', 'holder', 'hazardPhrases', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList
  aList = ['sampleComponents']
  currentMap['children'] = aList

  # Out-of-package link to RefSampleSource
  currentMap = {}
  exolinks['RefSampleSource'] = currentMap
  loadMaps['SAM.exo-RefSampleSource'] = currentMap
  currentMap['tag'] = 'SAM.exo-RefSampleSource'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00008'
  currentMap['name'] = 'RefSampleSource'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Sample.RefSampleSource
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to SampleComponent
  currentMap = {}
  exolinks['SampleComponent'] = currentMap
  loadMaps['SAM.exo-SampleComponent'] = currentMap
  currentMap['tag'] = 'SAM.exo-SampleComponent'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00002'
  currentMap['name'] = 'SampleComponent'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Sample.SampleComponent
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00032'))

  # Out-of-package link to SampleStore
  currentMap = {}
  exolinks['SampleStore'] = currentMap
  loadMaps['SAM.exo-SampleStore'] = currentMap
  currentMap['tag'] = 'SAM.exo-SampleStore'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-05-12:37:24_00008'
  currentMap['name'] = 'SampleStore'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Sample.SampleStore
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))

  # Out-of-package link to RefSample
  currentMap = {}
  exolinks['RefSample'] = currentMap
  loadMaps['SAM.exo-RefSample'] = currentMap
  currentMap['tag'] = 'SAM.exo-RefSample'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00003'
  currentMap['name'] = 'RefSample'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Sample.RefSample
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to Sample
  currentMap = {}
  exolinks['Sample'] = currentMap
  loadMaps['SAM.exo-Sample'] = currentMap
  currentMap['tag'] = 'SAM.exo-Sample'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00001'
  currentMap['name'] = 'Sample'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Sample.Sample
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to CrystalSample
  currentMap = {}
  exolinks['CrystalSample'] = currentMap
  loadMaps['SAM.exo-CrystalSample'] = currentMap
  currentMap['tag'] = 'SAM.exo-CrystalSample'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00004'
  currentMap['name'] = 'CrystalSample'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Sample.CrystalSample
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))
