class ConfigurableSystemProcessExitCodeMapper implements SystemProcessExitCodeMapper {

	public static final String ELSE_KEY = "else";

	private Map<Object, ExitStatus> mappings;

	@Override
	public ExitStatus getExitStatus(int exitCode) {<FILL_FUNCTION_BODY>}

	/**
	 * @param mappings <code>Integer</code> exit code keys to
	 * {@link org.springframework.batch.core.ExitStatus} values.
	 */
	public void setMappings(Map<Object, ExitStatus> mappings) {
		Assert.notNull(mappings.get(ELSE_KEY), "Missing value for " + ELSE_KEY);
		this.mappings = mappings;
	}

}

		ExitStatus exitStatus = mappings.get(exitCode);
		if (exitStatus != null) {
			return exitStatus;
		}
		else {
			return mappings.get(ELSE_KEY);
		}
	
<no_super_class>