if (element.type == Element.Type.INCLUDE) {
// Process attributes looking for wtkx:id, src, resources, asynchronous,
// and static property setters only
String src = null;
Resources resources = this.resources;
for (Attribute attribute : element.attributes) {
if (attribute.prefix != null
&& attribute.prefix.equals(WTKX_PREFIX)) {
if (attribute.localName.equals(ID_ATTRIBUTE)) {
id = attribute.value;
} else {
throw new SerializationException(WTKX_PREFIX + ":" + attribute.localName
+ " is not a valid attribute.");
}
} else {
if (attribute.localName.equals(INCLUDE_SRC_ATTRIBUTE)) {
src = attribute.value;
} else if (attribute.localName.equals(INCLUDE_RESOURCES_ATTRIBUTE)) {
resources = new Resources(resources, attribute.value);
} else if (attribute.localName.equals(INCLUDE_ASYNCHRONOUS_ATTRIBUTE)) {
// TODO
throw new UnsupportedOperationException("Asynchronous includes are not"
+ " yet supported.");
} else {