protected Content.Type getContentType() { Content.Type ctype = Content.Type.TEXT; String type = parser.getAttributeValue(null, LN_TYPE); String src = parser.getAttributeValue(null, LN_SRC); if (type != null) { ctype = Content.Type.typeFromString(type); if (ctype == null) throw new FOMUnsupportedContentTypeException(type); } else if (type == null && src != null) { ctype = Content.Type.MEDIA; } return ctype; }