String characters = null;
TypeBinding simpleType = type.getSimpleType();
if(simpleType != null)
{
String fieldName = ctx.getSimpleContentProperty();
CharactersMetaData charactersMetaData = type.getCharactersMetaData();
PropertyMetaData propertyMetaData = charactersMetaData == null ? null : charactersMetaData.getProperty();
if(propertyMetaData != null)
{
fieldName = propertyMetaData.getName();
}