docs: public static String[] getPortIdentifiers()
  	{
  		String ports = null;
  		try {
  			ports = System.getProperty("microedition.commports");
  		}
  		catch (final SecurityException e) {}
  		if (ports != null) {
  			final StringTokenizer st = new StringTokenizer(ports, ",");
  			final String[] portIDs = new String[st.countTokens()];
  			for (int i = 0; i < portIDs.length; ++i)
  				portIDs[i] = st.nextToken();
  			return portIDs;
  		}
  		if (SerialCom.isLoaded()) {
  			final String prefix = defaultPortPrefix();
  			final List l = new ArrayList(10);
  			for (int i = 0; i < 10; ++i)
  				if (SerialCom.portExists(prefix + i))
  					l.add(prefix + i);
  			return (String[]) l.toArray(new String[l.size()]);
  		}
  		// skip other possible adapters for now, and return empty list...
  		return new String[0];
  	}