//
Environment env = createEnvironment();
DeploymentDescriptor dd = createDeploymentDescriptor();
Document ddXML = env.getDocument(DescriptorConstants.DESCRIPTOR_FILE_NAME);
dd.load(ddXML, env);
//
// put all custom serializers in the serializer registry
//
Collection serializerDefinitions = dd.getSerializerDefinitions();