class ImageRef {

	public String getImageName() {
		String[] splitted = image.split("/");

		StringJoiner joiner = new StringJoiner("/");
		Arrays.stream(splitted)
				.filter(token -> token.indexOf(".") < 0)
				.forEach(token -> joiner.add(token));

		return joiner.toString();
	}

	public  ImageRef(final String image);

}