}
@Override
protected String extractName()
{
ThriftStruct annotation = getStructClass().getAnnotation(ThriftStruct.class);
if (annotation == null) {
return getStructClass().getSimpleName();
}
else if (!annotation.value().isEmpty()) {
return annotation.value();
}
else {
return getStructClass().getSimpleName();
}
}