static public List<String> getInterfaceNameList(RTComponent component,
			DataPort dataPort) throws CorbaNamingCannotFindException,
			CorbaNamingResolveException {
		ArrayList<String> inList = new ArrayList<String>();
		if (component instanceof PyIOComponent) {
			return inList; // null list.
		}

		if (dataPort.getInterfaceList() != null) {
			for (Interface intf : dataPort.getInterfaceList()) {
				inList.add(intf.getName());
			}
			return inList;
		}
		PortService port = getPortService(component, dataPort
				.get(DataPort.RTS_NAME));
		if (port != null) {
			for (PortInterfaceProfile prof : port.get_port_profile().interfaces) {
				inList.add(prof.type_name);
			}
		}
		return inList;
	}