private String loadVersion() {
		String version = "unknown";
		try {
			Class<?> clz = getClass();
			String className = clz.getSimpleName() + ".class";
			String classPath = clz.getResource(className).toString();
			if (classPath.startsWith("jar")) {
				String manifestPath = classPath.substring(0, classPath.lastIndexOf('!') + 1) +
						"/META-INF/MANIFEST.MF";
				Manifest manifest = new Manifest(new URL(manifestPath).openStream());
				Attributes attributes = manifest.getMainAttributes();
				String value = attributes.getValue("Implementation-Version");
				if (StringUtils.hasText(value)) {
					version = value.replaceAll("BUILD-SNAPSHOT", "SNAP").replaceAll("-RELEASE", "");
				}
			}
		}
		catch (Exception e) {
			// since this is used to initialize the logging framework,
			// the error cannot be logged via the logging framework
			System.out.println("Could not determine version of Spring XD via manifest");
			e.printStackTrace();
		}

		return version;
	}
Load the manifest for the jar file this class was packaged in
and return the "Implementation-Version" field of the manifest.
If this class was not loaded from a jar or if the manifest
cannot be loaded, a default value of {@code unknown} is returned.

@return value of "Implementation-Version" field from manifest
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/util/logging/VersionPatternConverter.java