{
EClassifier eType = getEType();
if (eType instanceof EDataType)
{
EFactory factory = eType.getEPackage().getEFactoryInstance();
String literal = factory.convertToString((EDataType)eType, newDefaultValue);
defaultValueFactory = null;
setDefaultValueLiteralGen(literal);
return;
}
throw new IllegalStateException("Cannot serialize value to object without an EDataType eType");