Midlet[] midlets = this.buildSetting.getMidlets(); if (midlets == null || midlets.length == 0) { throw new BuildException("Midlets need to be defined in the build section with either <midlets> or <midlet>."); } if (this.buildSetting.getPreverify() == null) { throw new BuildException("Nested element [build] needs to define the attribute [preverify] which points to the preverify-executable of the wireless toolkit."); }
	private void checkSettings() {		if (this.infoSetting == null) {			throw new BuildException("Nested element [info] is required.");		}		if (this.buildSetting == null) {			throw new BuildException("Nested element [build] is required.");		}		if (this.deviceRequirements == null) {			log("Nested element [deviceRequirements] is missing, now the project will be optimized for all known devices.");		}	}