descriptor.getInheritancePolicy().setClassIndicatorField(new XMLField("@xsi:type"));
descriptor.getInheritancePolicy().addClassIndicator(DescriptorQueryManager.class, getPrimaryNamespaceXPath() + "query-policy");
XMLCompositeCollectionMapping namedQueriesMapping = new XMLCompositeCollectionMapping();
namedQueriesMapping.setReferenceClass(DatabaseQuery.class);
namedQueriesMapping.useCollectionClass(Vector.class);
namedQueriesMapping.setAttributeName("queries");
namedQueriesMapping.setGetMethodName("getAllQueries");
namedQueriesMapping.setSetMethodName("setAllQueries");
namedQueriesMapping.setXPath(getSecondaryNamespaceXPath() + "queries/" + getSecondaryNamespaceXPath() + "query");
descriptor.addMapping(namedQueriesMapping);