defaultSequenceMapping.setReferenceClass(Sequence.class);
defaultSequenceMapping.setXPath(getPrimaryNamespaceXPath() + "sequencing/" + getPrimaryNamespaceXPath() + "default-sequence");
descriptor.addMapping(defaultSequenceMapping);
XMLCompositeCollectionMapping sequencesMapping = new XMLCompositeCollectionMapping();
MapContainerPolicy containerPolicy = new MapContainerPolicy(HashMap.class);
containerPolicy.setKeyName("name", Sequence.class.getName());
sequencesMapping.setContainerPolicy(containerPolicy);
sequencesMapping.setAttributeName("sequences");
sequencesMapping.setSetMethodName("setSequences");
sequencesMapping.setGetMethodName("getSequencesToWrite");
sequencesMapping.setReferenceClass(Sequence.class);