if (element.type == Element.Type.INCLUDE) {
// Process attributes looking for src, resources, and static property
// setters only
String src = null;
Resources resources = this.resources;
boolean inline = false;
for (Attribute attribute : element.attributes) {
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_INLINE_ATTRIBUTE)) {
inline = Boolean.parseBoolean(attribute.value);
} else {
if (!Character.isUpperCase(attribute.localName.charAt(0))) {
throw new SerializationException("Instance property setters are not"