public static boolean hasPort(String id) {
		String[] splitEntry = id.split(":");
		try {
			Integer.valueOf(splitEntry[splitEntry.length - 1]);
			return true;
		}
		catch (NumberFormatException e) {
			return false;
		}
	}
public static boolean hasPort ( String id ) { String [ ] splitEntry = id . split ( ":" ) ; try { Integer . valueOf ( splitEntry [ splitEntry . length - 1 ] ) ; return true ; } catch ( NumberFormatException e ) { return false ; } }
@param id string notation of a stub
@return {@code true} if a port is there in the identifier