static public String getDataType(RTComponent component, DataPort dataPort)
			throws CorbaNamingCannotFindException, CorbaNamingResolveException {
		if (dataPort.getDataType() != null) {
			return dataPort.getDataType();
		}

		PortService port = RTSystemBuilder.getPortService(component, dataPort
				.get(DataPort.RTS_NAME));
		if (port != null) {
			for (NameValue nv : port.get_port_profile().properties) {
				if (nv.name.equals("dataport.data_type")) {
					if (nv.value.type().kind().value() == TCKind._tk_wstring) {
						return nv.value.extract_wstring();
					} else {
						return nv.value.extract_string();
					}
				}
			}
		}
		return null;
	}