class VersionUtils {

	public static String getVersionFromPomProperties(Class clazz, String groupId, String artifactId) {
		final String classpathLocation = "META-INF/maven/" + groupId + "/" + artifactId + "/pom.properties";
		final Properties pomProperties = PropertyFileConfigurationSource.getFromClasspath(classpathLocation, clazz.getClassLoader());
		if (pomProperties != null) {
			return pomProperties.getProperty("version");
		}
		return null;
	}

	private  VersionUtils();

}