code: 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];
  	}
docs: Attempts to gets the available serial communication ports on the host.
  <p>
  At first, the Java system property "microedition.commports" is queried. If there is
  no property with that key, and Calimero itself has access to serial ports,
  the lowest 10 ports numbers are enumerated and checked if present.<br>
  The empty array is returned if no ports are discovered.
  
  @return array of strings with found port IDs