Type type = (gxpType != null) ? createGxpType(node, attrMap, gxpType)
: (contentType != null) ? createContentType(node, null)
: (defaultType == null || !nativeType.isEmpty()) ? new NativeType(node, nativeType)
: defaultType;
if (type != null && type.onlyAllowedInParam() && !forParam) {
alertSink.add(new InvalidTypeError(type));
type = null;
}
return type;