* @return a String representing the validated type
*/
public static String validateType(AlertSink alertSink, NativeType type) {
String ret = type.getNativeType(OutputLanguage.SCALA);
if (ret == null) {
alertSink.add(new MissingTypeError(type, OutputLanguage.SCALA));
return ret;
}
ret = ret.replace('{', '[').replace('}', ']').trim();