forked from google/gdata-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExtensionProfile.java
More file actions
709 lines (580 loc) · 24 KB
/
Copy pathExtensionProfile.java
File metadata and controls
709 lines (580 loc) · 24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
/* Copyright (c) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.gdata.data;
import com.google.gdata.util.common.base.Pair;
import com.google.gdata.util.common.xml.XmlNamespace;
import com.google.gdata.util.common.xml.XmlWriter;
import com.google.gdata.util.common.xml.XmlWriter.Attribute;
import com.google.gdata.client.CoreErrorDomain;
import com.google.gdata.util.Namespaces;
import com.google.gdata.util.ParseException;
import com.google.gdata.util.XmlParser;
import org.xml.sax.Attributes;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import java.util.TreeSet;
/**
* Specifies a complete extension profile for an extended GData schema.
* A profile is a set of allowed extensions for each type together with
* additional properties.
* <p>
* For example, Calendar might allow {@code <gd:who>} within {@code
* <atom:feed>}, and {@code <gd:when>}, {@code <gd:who>}, and {@code
* <gd:where>} within {@code <atom:entry>}.
*
*
*
*/
public class ExtensionProfile {
/** Set of previously declared Kind.Adaptor classes. */
private HashSet<Class<? extends Kind.Adaptor>> declared =
new HashSet<Class<? extends Kind.Adaptor>>();
/**
* Adds the extension declarations associated with an {@link Kind.Adaptor}
* instance, if the declaring class has not already added to this
* profile. The method is optimized to reduce the overhead of declaring
* the same adaptor type multiple times within the same profile.
*/
public void addDeclarations(Kind.Adaptor adaptor) {
Class<? extends Kind.Adaptor> adaptorClass = adaptor.getClass();
if (declared.add(adaptorClass)) {
adaptor.declareExtensions(this);
}
}
// Simple helper method to avoid cast warnings in very specific cases
// where we know the cast is safe.
@SuppressWarnings("unchecked")
private Class<? extends ExtensionPoint> extensionPointClass(Class clazz) {
return clazz;
}
/**
* Specifies that type {@code extendedType} can contain an extension
* described by {@code extDescription}.
*/
public synchronized void declare(Class<? extends ExtensionPoint> extendedType,
ExtensionDescription extDescription) {
// When configuring an extension profile that is auto-extensible, remap
// th extension point assocations from the specific type down to any
// base adaptable type. This ensures that extensions will be parseable
// on a more generic base type. As an example, this would map extensions
// that are normally associated with EventEntry "up" to BaseEntry.
boolean wasRequirednessRemoved = false;
while (isAutoExtending &&
Kind.Adaptable.class.isAssignableFrom(extendedType.getSuperclass())) {
/* it is unsafe to pass require-ness to a the super class, so here we are
removing the required-ness from the extension description. See for
example bug 191364. */
if (!wasRequirednessRemoved && extDescription.isRequired()) {
wasRequirednessRemoved = true;
extDescription = new ExtensionDescription(
extDescription.getExtensionClass(),
extDescription.getNamespace(),
extDescription.getLocalName(),
false,
extDescription.isRepeatable(),
extDescription.isAggregate(),
extDescription.allowsArbitraryXml(),
extDescription.allowsMixedContent());
}
extendedType = extensionPointClass(extendedType.getSuperclass());
}
ExtensionManifest manifest = getOrCreateManifest(extendedType);
profile.put(extendedType, manifest);
Pair<String, String> extensionQName =
new Pair<String,String>(extDescription.getNamespace().getUri(),
extDescription.getLocalName());
manifest.supportedExtensions.put(extensionQName, extDescription);
// Propagate the declarations down to any profiled subtypes.
for(ExtensionManifest subclassManifest : manifest.subclassManifests) {
subclassManifest.supportedExtensions.put(extensionQName, extDescription);
}
if (extDescription.allowsArbitraryXml()) {
Class<? extends ExtensionPoint> extType =
(Class<? extends ExtensionPoint>) extDescription.getExtensionClass();
ExtensionManifest extManifest = getOrCreateManifest(extType);
profile.put(extType, extManifest);
declareArbitraryXmlExtension(extType, extDescription.allowsMixedContent());
}
nsDecls = null;
}
/**
* Specifies that type {@code extendedType} can contain an extension described
* by {@code extClass}, as determined by
* {@link ExtensionDescription#getDefaultDescription(Class)}.
*/
public synchronized void declare(Class<? extends ExtensionPoint> extendedType,
Class<? extends Extension> extClass) {
declare(extendedType, ExtensionDescription.getDefaultDescription(extClass));
}
/**
* Declares that {@code extDesc} defines a feed extension.
*
* @deprecated Calls to this API should be replaced with calls to
* {@link ExtensionProfile#declare(Class,ExtensionDescription)} where
* the first argument is a specific {@link BaseFeed} subtype. The
* {@link BaseFeed} class should only be used for mix-in types that
* might appear in multiple feed types. Its use for all feed declarations
* can result in conflicts when mutiple feed types are declared into a
* single extension profile, a common practice in client library service
* initialization for services that return multiple feed types.
*/
@Deprecated
public synchronized void declareFeedExtension(ExtensionDescription extDesc) {
declare(BaseFeed.class, extDesc);
}
/**
* Declares that {@code extClass} defines a feed extension.
*
* @deprecated Calls to this API should be replaced with calls to
* {@link ExtensionProfile#declare(Class,ExtensionDescription)} where
* the first argument is a specific {@link BaseFeed} subtype. The
* {@link BaseFeed} class should only be used for mix-in types that
* might appear in multiple feed types. Its use for all feed declarations
* can result in conflicts when mutiple feed types are declared into a
* single extension profile, a common practice in client library service
* initialization for services that return multiple feed types.
*/
@Deprecated
public synchronized void declareFeedExtension(
Class<? extends Extension> extClass) {
declare(BaseFeed.class, extClass);
}
/**
* Declares that {@code extDesc} defines an entry extension.
*
* @deprecated Calls to this API should be replaced with calls to
* {@link ExtensionProfile#declare(Class,ExtensionDescription)} where
* the first argument is a specific {@link BaseEntry} subtype. The
* {@link BaseEntry} class should only be used for mix-in types that
* might appear in multiple entry types. Its use for all entry declarations
* can result in conflicts when mutiple feed types are declared into a
* single extension profile, a common practice in client library service
* initialization for services that return multiple entry types.
*/
@Deprecated
public synchronized void declareEntryExtension(ExtensionDescription extDesc) {
declare(BaseEntry.class, extDesc);
}
/**
* Declares that {@code extClass} defines an entry extension.
*
* @deprecated Calls to this API should be replaced with calls to
* {@link ExtensionProfile#declare(Class,ExtensionDescription)} where
* the first argument is a specific {@link BaseEntry} subtype. The
* {@link BaseEntry} class should only be used for mix-in types that
* might appear in multiple entry types. Its use for all entry declarations
* can result in conflicts when mutiple feed types are declared into a
* single extension profile, a common practice in client library service
* initialization for services that return multiple entry types.
*/
@Deprecated
public synchronized void declareEntryExtension(
Class<? extends Extension> extClass) {
declare(BaseEntry.class, extClass);
}
/**
* Specifies that type {@code extendedType} can contain arbitrary XML.
*
* @param extendedType the type being declared for
*/
public synchronized void declareArbitraryXmlExtension(
Class<? extends ExtensionPoint> extendedType) {
declareArbitraryXmlExtension(extendedType, false);
}
/**
* Specifies that type {@code extendedType} can contain arbitrary XML.
*
* @param extendedType the type being declared for
* @param mixedContent if true, permit mixed content in the arbitrary XML.
*/
public synchronized void declareArbitraryXmlExtension(
Class<? extends ExtensionPoint> extendedType,
boolean mixedContent) {
ExtensionManifest manifest = getOrCreateManifest(extendedType);
manifest.arbitraryXml = true;
manifest.mixedContent = mixedContent;
// Propagate the arbitrary xml declaration to any profiled subtypes.
for(ExtensionManifest subclassManifest : manifest.subclassManifests) {
subclassManifest.arbitraryXml = true;
subclassManifest.mixedContent = mixedContent;
}
profile.put(extendedType, manifest);
nsDecls = null;
}
/** Specifies additional top-level namespace declarations. */
public synchronized void declareAdditionalNamespace(XmlNamespace ns) {
additionalNamespaces.add(ns);
}
/** Specifies the type of feeds nested within {@code <gd:feedLink>}. */
public synchronized void declareFeedLinkProfile(ExtensionProfile profile) {
feedLinkProfile = profile;
nsDecls = null;
}
/** Retrieves the type of feeds nested within {@code <gd:feedLink>}. */
public synchronized ExtensionProfile getFeedLinkProfile() {
return feedLinkProfile;
}
/** Specifies the type of entries nested within {@code <gd:entryLink>}. */
public synchronized void declareEntryLinkProfile(ExtensionProfile profile) {
entryLinkProfile = profile;
nsDecls = null;
}
/** Retrieves the type of entries nested within {@code <gd:entryLink>}. */
public synchronized ExtensionProfile getEntryLinkProfile() {
return entryLinkProfile;
}
/**
* Retrieves an extension manifest for a specific class (or one of
* its superclasses) or {@code null} if not specified.
*/
public ExtensionManifest getManifest(Class<?> extendedType) {
ExtensionManifest manifest = null;
while (extendedType != null) {
manifest = profile.get(extendedType);
if (manifest != null)
return manifest;
extendedType = extendedType.getSuperclass();
}
return null;
}
/**
* Returns whether the given extended type has already been declared. Note
* that unlike {@link #getManifest(Class)}, it does not check the super
* classes.
*/
public boolean isDeclared(Class<?> extendedType) {
return profile.containsKey(extendedType);
}
/** Retrieves a collection of all namespaces used by this profile. */
public synchronized Collection<XmlNamespace> getNamespaceDecls() {
if (nsDecls == null) {
nsDecls = computeNamespaceDecls();
}
return nsDecls;
}
/** Internal storage for the profile. */
private final Map<Class<?>, ExtensionManifest> profile =
new HashMap<Class<?>, ExtensionManifest>();
/** Additional namespaces. */
private Collection<XmlNamespace> additionalNamespaces =
new LinkedHashSet<XmlNamespace>();
/** Nested feed link profile. */
private ExtensionProfile feedLinkProfile;
/** Nested entry link profile. */
private ExtensionProfile entryLinkProfile;
/** Namespace declarations cache. */
private Collection<XmlNamespace> nsDecls = null;
/** Profile supports auto-extension declaration */
private boolean isAutoExtending = false;
public void setAutoExtending(boolean v) { isAutoExtending = v; }
public boolean isAutoExtending() { return isAutoExtending; }
/**
* When {@code true}, indicates that arbitrary XML is acceptable on any
* {@link ExtensionPoint} when parsing using this profile. The default
* value is {@code true} to provide compliance with sections 6.3 of
* RFC4287 (Atom Syntax) and section 6.2 of the AtomPub spec.
*/
private boolean allowsArbitraryXml = true;
/**
* Configures the extension profile to specify whether any foreign XML
* elements found when parsing within an {@link ExtensionPoint} should
* be preserved. If {@code false}, the presence of foreign XML will result
* in parsing errors. Arbitrary XML support is enabled by default in a
* newly created profile.
*
* @param v {@code true} to enable foreign XML preservation, {@code false}
* otherwise.
*
* #see ExtensionPoint.getXmlBlob()
*/
public void setArbitraryXml(boolean v) { allowsArbitraryXml = v; }
/**
* Returns whether foreign XML elements will be preserved within any
* {@link ExtensionPoint}.
*
* @return {@code true} if foreign XML elements are preserved, {@code false}
* otherwise.
*/
public boolean allowsArbitraryXml() { return allowsArbitraryXml; }
/** Internal helper routine. */
private ExtensionManifest getOrCreateManifest(
Class<? extends ExtensionPoint> extendedType) {
// Look for a manifest associated with the extend type, and if it is
// a precise match then return it.
ExtensionManifest manifest = getManifest(extendedType);
if (manifest != null && manifest.extendedType == extendedType) {
return manifest;
}
ExtensionManifest newManifest = new ExtensionManifest(extendedType);
// Compute the list of manifests for supertypes. Do this using a stack,
// so we can process them in reverse order (from the deepest superclass
// to the closest).
Stack<ExtensionManifest> superManifests = new Stack<ExtensionManifest>();
while (manifest != null) {
superManifests.push(manifest);
manifest = getManifest(manifest.extendedType.getSuperclass());
}
// Propagate declarations from any superclass that is already in the
// extension profile, and set up an association from the super manifest
// to the subclass one so future declarations will propagate.
while (!superManifests.empty()) {
ExtensionManifest superManifest = superManifests.pop();
newManifest.supportedExtensions.putAll(
superManifest.supportedExtensions);
newManifest.arbitraryXml = superManifest.arbitraryXml;
superManifest.subclassManifests.add(newManifest);
}
// Look for any existing profile types that extend the newly added
// one and set up a relationship mapping so future declarations on this
// manifest will be propagated
for(Map.Entry<Class<?>, ExtensionManifest> profileMapping :
profile.entrySet()) {
if (extendedType.isAssignableFrom(profileMapping.getKey())) {
newManifest.subclassManifests.add(profileMapping.getValue());
}
}
return newManifest;
}
private synchronized Collection<XmlNamespace> computeNamespaceDecls() {
HashSet<XmlNamespace> result = new HashSet<XmlNamespace>();
result.addAll(additionalNamespaces);
for (ExtensionManifest manifest: profile.values()) {
result.addAll(manifest.getNamespaceDecls());
}
if (feedLinkProfile != null) {
result.addAll(feedLinkProfile.computeNamespaceDecls());
}
if (entryLinkProfile != null) {
result.addAll(entryLinkProfile.computeNamespaceDecls());
}
return Collections.unmodifiableSet(result);
}
/**
* Reads the ExtensionProfile XML format.
*/
public class Handler extends XmlParser.ElementHandler {
private ExtensionProfile configProfile;
private ClassLoader configLoader;
private List<XmlNamespace> namespaces =
new ArrayList<XmlNamespace>();
public Handler(ExtensionProfile configProfile, ClassLoader configLoader,
Attributes attrs) throws ParseException {
this.configProfile = configProfile;
this.configLoader = configLoader;
if (attrs != null) {
Boolean val = getBooleanAttribute(attrs, "arbitraryXml");
if (val != null) {
allowsArbitraryXml = val;
}
}
}
public void validate() {
}
@Override
public void processEndElement() {
validate();
}
@Override
public XmlParser.ElementHandler getChildHandler(String namespace,
String localName,
Attributes attrs)
throws ParseException, IOException {
if (namespace.equals(Namespaces.gdataConfig)) {
if (localName.equals("namespaceDescription")) {
String alias = attrs.getValue("", "alias");
if (alias == null) {
ParseException pe = new ParseException(
CoreErrorDomain.ERR.missingAttribute);
pe.setInternalReason(
"NamespaceDescription alias attribute is missing");
throw pe;
}
String uri = attrs.getValue("", "uri");
if (uri == null) {
ParseException pe = new ParseException(
CoreErrorDomain.ERR.missingAttribute);
pe.setInternalReason(
"NamespaceDescription uri attribute is missing");
throw pe;
}
XmlNamespace declaredNs = new XmlNamespace(alias, uri);
namespaces.add(declaredNs);
declareAdditionalNamespace(declaredNs);
return new XmlParser.ElementHandler();
} else if (localName.equals("extensionPoint")) {
return new ExtensionPointHandler(configProfile, configLoader,
namespaces, attrs);
}
}
return super.getChildHandler(namespace, localName, attrs);
}
}
/**
* Reads the ExtensionPoint XML format
*/
public class ExtensionPointHandler extends XmlParser.ElementHandler {
private ExtensionProfile configProfile;
private ClassLoader configLoader;
private Class<? extends ExtensionPoint> extensionPoint;
private boolean arbitraryXml;
private List<ExtensionDescription> extDescriptions =
new ArrayList<ExtensionDescription>();
private List<XmlNamespace> namespaces;
public ExtensionPointHandler(ExtensionProfile configProfile,
ClassLoader configLoader,
List<XmlNamespace> namespaces,
Attributes attrs)
throws ParseException {
this.configProfile = configProfile;
this.configLoader = configLoader;
this.namespaces = namespaces;
String extendedClassName = attrs.getValue("", "extendedClass");
if (extendedClassName == null) {
ParseException pe = new ParseException(
CoreErrorDomain.ERR.missingAttribute);
pe.setInternalReason(
"ExtensionPoint extendedClass attribute is missing");
throw pe;
}
Class<?> loadedClass;
try {
loadedClass = configLoader.loadClass(extendedClassName);
} catch (ClassNotFoundException e) {
throw new ParseException(
CoreErrorDomain.ERR.cantLoadExtensionPoint, e);
}
if (!ExtensionPoint.class.isAssignableFrom(loadedClass)) {
throw new ParseException(
CoreErrorDomain.ERR.mustExtendExtensionPoint);
}
extensionPoint = extensionPointClass(loadedClass);
Boolean val = getBooleanAttribute(attrs, "arbitraryXml");
if (val != null) {
arbitraryXml = val;
}
}
@Override
public void processEndElement() {
if (arbitraryXml) {
declareArbitraryXmlExtension(extensionPoint);
}
for (ExtensionDescription extDescription: extDescriptions) {
declare(extensionPoint, extDescription);
}
}
@Override
public XmlParser.ElementHandler getChildHandler(String namespace,
String localName,
Attributes attrs)
throws ParseException, IOException {
if (namespace.equals(Namespaces.gdataConfig)) {
if (localName.equals("extensionDescription")) {
ExtensionDescription extDescription = new ExtensionDescription();
extDescriptions.add(extDescription);
return extDescription.new Handler(configProfile, configLoader,
namespaces, attrs);
}
}
return super.getChildHandler(namespace, localName, attrs);
}
}
/**
* Parses XML in the ExtensionProfile format.
*
* @param configProfile
* Extension profile description configuration extensions.
*
* @param classLoader
* ClassLoader to load extension classes
*
* @param stream
* InputStream from which to read the description
*/
public void parseConfig(ExtensionProfile configProfile,
ClassLoader classLoader,
InputStream stream) throws IOException,
ParseException {
Handler handler = new Handler(configProfile, classLoader, null);
new XmlParser().parse(stream, handler, Namespaces.gdataConfig,
"extensionProfile");
}
/**
* Generates XML in the external config format.
*
* @param w
* Output writer.
*
* @param extProfile
* Extension profile.
*
* @throws IOException
*/
public void generateConfig(XmlWriter w,
ExtensionProfile extProfile) throws IOException {
List<Attribute> epAttrs = new ArrayList<Attribute>();
epAttrs.add(new Attribute("arbitraryXml", allowsArbitraryXml));
w.startElement(Namespaces.gdataConfigNs, "extensionProfile", epAttrs,
nsDecls);
for (XmlNamespace namespace : additionalNamespaces) {
List<Attribute> nsAttrs = new ArrayList<Attribute>();
nsAttrs.add(new Attribute("alias", namespace.getAlias()));
nsAttrs.add(new Attribute("uri", namespace.getUri()));
w.simpleElement(Namespaces.gdataConfigNs, "namespaceDescription",
nsAttrs, null);
}
//
// Get a list of the extended classes sorted by class name
//
TreeSet<Class<?>> extensionSet = new TreeSet<Class<?>>(
new Comparator<Class<?>>() {
public int compare(Class<?> c1, Class<?> c2) {
return c1.getName().compareTo(c2.getName());
}
});
for (Class<?> extensionPoint : profile.keySet()) {
extensionSet.add(extensionPoint);
}
for (Class<?> extensionPoint : extensionSet) {
ExtensionManifest manifest = profile.get(extensionPoint);
List<Attribute> ptAttrs = new ArrayList<Attribute>();
ptAttrs.add(new Attribute("extendedClass", extensionPoint.getName()));
ptAttrs.add(new Attribute("arbitraryXml", manifest.arbitraryXml));
w.startElement(Namespaces.gdataConfigNs, "extensionPoint", ptAttrs, null);
// Create an ordered list of the descriptions in this profile
TreeSet<ExtensionDescription> descSet =
new TreeSet<ExtensionDescription>();
for (ExtensionDescription extDescription :
manifest.getSupportedExtensions().values()) {
descSet.add(extDescription);
}
// Now output based upon the ordered list
for (ExtensionDescription extDescription : descSet) {
extDescription.generateConfig(w, extProfile);
}
w.endElement(Namespaces.gdataConfigNs, "extensionPoint");
}
w.endElement(Namespaces.gdataConfigNs, "extensionProfile");
}
}