public String getMimeType() { ContentTypeField childType = getContentTypeField(); Entity parent = getParent(); ContentTypeField parentType = parent != null ? (ContentTypeField) (parent).getHeader().getField(FieldName.CONTENT_TYPE) : null; return calcMimeType(childType, parentType); }