int intValue = maxValue; try{ intValue = Integer.parseInt(element);
int intValue = 0; int d = 1; int i = element.length(); while ( --i  > -1) { char c = element.charAt(i); if (Character.isDigit(c)) { int k = Character.getNumericValue(c); intValue += (k * d); d = d * 10; } else { i = -1; }
	protected String getNextMenuItemId(){		int maxValue = 0;		for (Iterator iter = getMenuItemIds().iterator(); iter.hasNext();) {			String element = (String) iter.next();			int intValue = maxValue;			try{				intValue = Integer.parseInt(element);			}			catch(NumberFormatException nfe){}			if(intValue>maxValue){				maxValue=intValue;			}		}		return String.valueOf(++maxValue);	}